sadier

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  c#.WinForm

摘要:usingSystem;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Web;usingSystem.Web.SessionState;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;using... 阅读全文
posted @ 2005-08-18 09:28 毛小华 阅读(2226) 评论(0) 推荐(0)

摘要:1、尽量用接口编程。 接口是根源,如写通用函数的时候,用iCollection代替,object[].  因为object[]是属于icollection的。 2、分布式事务的数据库只能放不同的数据库? 需求:总公司1个,销售分公司20个的情况(网路不是很稳定);分公司有单独的数据库符合以客户为中心的需求;总公司本身是个生产的部分,但要集中分公司的数据。 则总公司有21个数据库,总公司用... 阅读全文
posted @ 2005-04-20 21:22 毛小华 阅读(1284) 评论(1) 推荐(0)

摘要:1、金额不能只给出俩位,当数量大的时候可能需要第三、四位数据。 阅读全文
posted @ 2005-04-04 13:30 毛小华 阅读(1288) 评论(1) 推荐(0)

摘要:计算价格 程序处理 :  有产品表TBL_Schema,产品价格有很多零件构成(TBL_SchemaDetial),零件的价格常变,此时应该更新产品的价格。一个产品的更新要涉及 材料表(TBL_StoreMaterial,存在材料的价格) ,价格登记表(TBL_TypePiceManage , 要查两次利润和损耗)。要更新价格(TBL_Schema).要求:客户说计算太慢,所以... 阅读全文
posted @ 2004-11-26 11:09 毛小华 阅读(1745) 评论(1) 推荐(0)

摘要:private string Num2TraWord(string MoneyNoStr) { string sourNostr = MoneyNoStr; string[] strary = sourNostr.Split('.'); if (strary[0].Length > 0) strary[0] = strary[0].Insert(strary... 阅读全文
posted @ 2004-07-23 19:28 毛小华 阅读(2418) 评论(5) 推荐(0)