摘要:usingSystem;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Web;usingSystem.Web.SessionState;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;using...
阅读全文
随笔分类 - c#.WinForm
摘要:1、尽量用接口编程。 接口是根源,如写通用函数的时候,用iCollection代替,object[]. 因为object[]是属于icollection的。 2、分布式事务的数据库只能放不同的数据库? 需求:总公司1个,销售分公司20个的情况(网路不是很稳定);分公司有单独的数据库符合以客户为中心的需求;总公司本身是个生产的部分,但要集中分公司的数据。 则总公司有21个数据库,总公司用...
阅读全文
摘要:1、金额不能只给出俩位,当数量大的时候可能需要第三、四位数据。
阅读全文
摘要:计算价格 程序处理 : 有产品表TBL_Schema,产品价格有很多零件构成(TBL_SchemaDetial),零件的价格常变,此时应该更新产品的价格。一个产品的更新要涉及 材料表(TBL_StoreMaterial,存在材料的价格) ,价格登记表(TBL_TypePiceManage , 要查两次利润和损耗)。要更新价格(TBL_Schema).要求:客户说计算太慢,所以...
阅读全文
摘要:private string Num2TraWord(string MoneyNoStr) { string sourNostr = MoneyNoStr; string[] strary = sourNostr.Split('.'); if (strary[0].Length > 0) strary[0] = strary[0].Insert(strary...
阅读全文