Com.Aote.Behaviors.CreateReceiptAction.CreateObj C# (CSharp) Method

CreateObj() public method

public CreateObj ( GeneralObject source, double no ) : GeneralObject
source Com.Aote.ObjectTools.GeneralObject
no double
return Com.Aote.ObjectTools.GeneralObject
        public GeneralObject CreateObj(GeneralObject source,double no)
        {
            GeneralObject go = new GeneralObject();
            go.EntityType = EntityType;
            string value = no.ToString();
            if (value.Length != BeginNo.ToString().Length)
            {
                for (int i = 0; i <= BeginNo.ToString().Length-value.Length; i++)
                {
                    value = "0" + value;
                }
            }
            //发票号
            go.SetPropertyValue("f_invoicenum", value, true);
            //所属公司
            go.SetPropertyValue("f_filiale", source.GetPropertyValue("f_filiale"), true);
            //发票状态
            go.SetPropertyValue("f_fapiaostatue", "未用", true);
            //使用人
            go.SetPropertyValue("f_sgoperator", source.GetPropertyValue("f_sgoperator"), true);
            //分配人
            go.SetPropertyValue("f_operator", source.GetPropertyValue("f_operator"), true);
            //分配日期
            go.SetPropertyValue("f_date", source.GetPropertyValue("f_date"), true);
            return go;
        }
CreateReceiptAction