public void Remote_GetICPOEntry(string strFID, string strEntryID, ref ICPOBILLMODEL billModel, ref ICPOBILLENTRYMODEL entryModel) { FactoryService.APIServiceClient api = new FactoryService.APIServiceClient(); FactoryService.ICPOBILLENTRYModel_MHLS tempModel = api.GetICPOEntry(strFID, strEntryID); billModel.FID = tempModel.FID; billModel.FBILLNO = tempModel.FBILLNO; billModel.FDesBillNo = tempModel.FDesBillNo; billModel.Fcompany = tempModel.Fcompany; billModel.FprojectNO = tempModel.FprojectNO; billModel.FSYNCSTATUS = tempModel.FSYNCSTATUS; billModel.FPOtype = tempModel.FPOtype; billModel.Fpricepolicy = tempModel.Fpricepolicy; entryModel.Fdesbillentry = tempModel.Fdesbillentry; entryModel.FERR_MESSAGE = tempModel.FERR_MESSAGE; }
/// <summary> /// 库存查询接口 /// </summary> /// <param name="productname"></param> /// <param name="stockname"></param> /// <param name="productnumber"></param> /// <param name="wdr"></param> /// <param name="batchno"></param> /// <param name="brand"></param> /// <param name="mode"></param> /// <param name="colorno"></param> /// <returns></returns> public DataTable GetStockList( string productname = null, string stockname = null, string productnumber = null, string wdr = null, string batchno = null, string brand = null, string mode = null, string colorno = null, bool isfactory = true, bool istrust = false) { try { if (!string.IsNullOrEmpty(brand) && (!string.IsNullOrEmpty(productname) || !string.IsNullOrEmpty(mode) || !string.IsNullOrEmpty(stockname) || !string.IsNullOrEmpty(colorno))) { int pagecount = 0; FactoryService.APIServiceClient api = new FactoryService.APIServiceClient(); DataTable table = api.WmStock( out pagecount, productnumber, productname, stockname, brand, batchno, wdr, mode, colorno, 20, 1, isfactory, istrust); LogHelper.WriteLog(JsonHelper.ToJson(table)); return(table); } return(null); } catch (Exception ex) { LogHelper.WriteLog(ex); return(null); } }
public List <ICPO_BOLentryModel> Remote_GetICPO_BOEntry(string fbillno, string entryid) { List <ICPO_BOLentryModel> resultList = new List <ICPO_BOLentryModel>(); FactoryService.APIServiceClient api = new FactoryService.APIServiceClient(); List <FactoryService.ICPO_BOLentryModel_MNLS> tempModelList = api.GetICPO_BOEntry(fbillno, entryid).ToList(); foreach (var sub in tempModelList) { ICPO_BOLentryModel model = new ICPO_BOLentryModel(); model.FACCOUNT = sub.FACCOUNT; model.Famount = sub.Famount; model.FAUDQTY = sub.FAUDQTY; model.FCOLORNO = sub.FCOLORNO; model.FcommitQTY = sub.FcommitQTY; model.FcontractNO = sub.FcontractNO; model.FDATE = sub.FDATE; model.Ficbolentry = sub.Ficbolentry; model.Ficbolno = sub.Ficbolno; model.FID = sub.FID; model.FITEMID = sub.FITEMID; model.Flevel = sub.Flevel; model.Fpobillentry = sub.Fpobillentry; model.FPObillno = sub.FPObillno; model.fprice = sub.fprice; model.FprojectNO = sub.FprojectNO; model.FREMARK = sub.FREMARK; model.FSRCCODE = sub.FSRCCODE; model.FSRCMODEL = sub.FSRCMODEL; model.FSRCNAME = sub.FSRCNAME; model.FstockNO = sub.FstockNO; model.FSYNCSTATUS = sub.FSYNCSTATUS; model.FTIMESTAMP = sub.FTIMESTAMP; model.Funit = sub.Funit; resultList.Add(model); } return(resultList); }
public int Remote_SetICPO_BOEntryStatus(string fbillno, string entryid) { FactoryService.APIServiceClient api = new FactoryService.APIServiceClient(); return(api.SetICPO_BOEntryStatus(fbillno, entryid)); }