public byte[] Get_Z_RFC_ZMM011_WinCE(string woid) { this._strError = string.Empty; try { System.Data.DataSet ds = new System.Data.DataSet(); System.Data.DataTable mDt1 = new System.Data.DataTable("Z_RFC_ZMM011_TB1"); System.Data.DataTable mDt2 = new System.Data.DataTable("Z_RFC_ZMM011_TB2"); mDt1.Columns.Add("AUFNR", typeof(string)); mDt1.Columns.Add("MATNR1", typeof(string)); mDt1.Columns.Add("MATNR2", typeof(string)); mDt1.Columns.Add("MAKTX2", typeof(string)); mDt1.Columns.Add("BDMNG", typeof(Int32)); mDt2.Columns.Add("VORNR", typeof(string)); mDt2.Columns.Add("LTXA1", typeof(string)); RfcDestination _desination = RfcDestinationManager.GetDestination(this.GetCfgParameters()); IRfcFunction rfcFunction = _desination.Repository.CreateFunction("Z_RFC_ZMM011"); rfcFunction.SetValue("IMPORT1", woid); rfcFunction.Invoke(_desination); string[] arrTB = new string[] { "OUTPUT1", "OUTPUT2" }; IRfcTable table = rfcFunction.GetTable(arrTB[0]); for (int i = 0; i < table.RowCount; i++) { if (table[i].GetInt("BDMNG") < 1) { continue; } mDt1.Rows.Add(table[i].GetString("AUFNR").TrimStart('0'), table[i].GetString("MATNR1").TrimStart('0'), table[i].GetString("MATNR2").TrimStart('0'), table[i].GetString("MAKTX2").TrimStart('0'), table[i].GetInt("BDMNG")); } ds.Tables.Add(mDt1); table = rfcFunction.GetTable(arrTB[1]); for (int i = 0; i < table.RowCount; i++) { mDt2.Rows.Add(table[i].GetString("VORNR").TrimStart('0'), table[i].GetString("LTXA1").TrimStart('0')); } ds.Tables.Add(mDt2); return(mlc.GetDataSetZipBytes(ds)); } catch { return(null); } }
public byte[] GetSmtIO_WinCE(string masterId, string woId) { return(mlc.GetDataSetZipBytes(mSmtio.GetSmtIO(masterId, woId))); }
public byte[] GetFixtureInfo_WinCE() { return(mlc.GetDataSetZipBytes(fixture.GetFixtureInfo(null))); }
public byte[] Sel_Product_Info(string SN_Type, string SN) { return(mlc.GetDataSetZipBytes(Ds.Sel_Product_Info(SN_Type, SN))); }
public byte[] GetProductByName_CE(string productname) { return(mlc.GetDataSetZipBytes(mProduct.GetProduct(null, productname))); }
public byte[] GetUserInfo_WinCE() { return(mlc.GetDataSetZipBytes(mUserInfo.GetUserInfo())); }
public byte[] GetWoBomInfo_WinCE(string woId) { return(mlc.GetDataSetZipBytes(mWobominfo.GetWoBomInfo(woId))); }
public byte[] Sel_woId_Trsn_List_WinCe(string woId, string Flag) { return(mlc.GetDataSetZipBytes(tr_sn.Sel_woId_Trsn_List(woId, Flag))); }