Esempio n. 1
0
        /// <summary>
        /// 填充主表数据
        /// </summary>
        /// <returns></returns>
        private void FillBill(string cOrderNumber, string cNewEasOrder, string cUserName)
        {
            var iof = new InterfaceOracleFunction(Properties.Settings.Default.EasCon);

            mibill.FID = iof.GetFID("71D272F1");

            _storageUnit             = iof.GetReceiptStorageByOrderNumber(cOrderNumber, "T_IM_StockTransferBill");
            mibill.FSTORAGEORGUNITID = _storageUnit;
            //mibill.FAUDITTIME = DateTime.Now;
            mibill.FBASESTATUS = 1;
            mibill.FBIZTYPEID  = "d8e80652-011b-1000-e000-04c5c0a812202407435C";
            mibill.FNUMBER     = cNewEasOrder;

            var dDate = iof.ReturnBizDate();

            mibill.FBIZDATE = dDate;


            //制单人
            var cUserId = iof.GetUserIDbyUserName(cUserName);

            mibill.FCREATORID = string.IsNullOrEmpty(cUserId) ? "K7Li625bRC6r8uAH5mlIDRO33n8=" : cUserId;

            mibill.FCREATETIME = DateTime.Now;
            //修改
            mibill.FRECEIPTSTORAGEORGUNITID = _storageUnit;
            mibill.FISSUECOMPANYORGUNITID   = _storageUnit;
            mibill.FRECEIPTCOMPANYORGUNITID = _storageUnit;
            mibill.FISSYSBILL         = 0;
            mibill.FADMINORGUNITID    = iof.GetOutDepartmetByOrderNumber(cOrderNumber, "T_IM_StockTransferBill");
            mibill.FSTOCKERID         = "";
            mibill.FVOUCHERID         = "";
            mibill.FTOTALQTY          = 0;
            mibill.FTOTALAMOUNT       = 0;
            mibill.FFIVOUCHERED       = 0;
            mibill.FTOTALSTANDARDCOST = 0;
            mibill.FTOTALACTUALCOST   = 0;
            mibill.FISREVERSED        = 0;
            mibill.FTRANSACTIONTYPEID = "DawAAAAPoAqwCNyn";
            mibill.FISINITBILL        = 0;
            mibill.FMONTH             = int.Parse(dDate.ToString("yyyyMM"));
            mibill.FDAY = int.Parse(dDate.ToString("yyyyMMdd"));
            mibill.FCOSTCENTERORGUNITID = "";
            mibill.FSOURCEBILLTYPEID    = "50957179-0105-1000-e003-3152c0a812fd463ED552";
            mibill.FBILLTYPEID          = "50957179-0105-1000-e000-016ec0a812fd463ED552";
            mibill.FYEAR   = dDate.Year;
            mibill.FPERIOD = dDate.Month;
            //修改人不填写
            //mibill.FMODIFIERID = "knIF/5HGT7qEgaIYhcYA9xO33n8=";
            //mibill.FMODIFICATIONTIME = "2014-6-6 16:2";
            mibill.FHANDLERID   = "";
            mibill.FDESCRIPTION = "";
            mibill.FHASEFFECTED = 0;
            mibill.FAUDITORID   = "";
            //mibill.FSOURCEBILLID = "0";
            //mibill.FSOURCEFUNCTION = "0";
            //mibill.FLASTUPDATEUSERID = "knIF/5HGT7qEgaIYhcYA9xO33n8=";
            //mibill.FLASTUPDATETIME = "2014-6-6 16:2";
            mibill.FCONTROLUNITID = _storageUnit;
        }