public byte[] Byte_INTERFACE(string Interface, string Json) { Byte[] _StrErr = null; IDictionary <string, object> dic = MapListConverter.JsonToDictionary(Json); switch (Interface) { case "GetUserInfo": string UserId = null; string username = null; string PWD = null; if (dic.ContainsKey("USERID")) { UserId = dic["USERID"].ToString(); } if (dic.ContainsKey("USERNAME")) { UserId = dic["USERNAME"].ToString(); } if (dic.ContainsKey("PWD")) { UserId = dic["PWD"].ToString(); } _StrErr = mlc.GetDataSetSurrogateZipBytes(mUserInfo.GetUserInfo(UserId, username, PWD)); break; case "GetWoInfo": _StrErr = mlc.GetDataSetSurrogateZipBytes(woinfo.GetWoInfo(dic["WOID"].ToString(), dic["PARTNUMBER"].ToString(), null)); break; default: _StrErr = null; break; } return(_StrErr); }
public byte[] Get_Z_RFC_ZMM011(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.GetDataSetSurrogateZipBytes(ds)); } catch { return(null); } }
public byte[] GetReworkInfo(string ReworkNo) { return(mlc.GetDataSetSurrogateZipBytes(ReworkDetail.GetReworkInfo(ReworkNo))); }
public byte[] QuerytSmtKpNormallog(string dicstring, bool ShowTotal) { return(mlc.GetDataSetSurrogateZipBytes(mSmtkpnormallog.QuerytSmtKpNormallog(dicstring, ShowTotal))); }
public byte[] Get_UserInfo(string JsonUser, string FieldList) { IDictionary <string, object> mst = MapListConverter.JsonToDictionary(JsonUser); return(mlc.GetDataSetSurrogateZipBytes(mUserInfo.GetUserInfo(mst, FieldList))); }
public byte[] GetSmtIO(string masterId, string woId) { return(mlc.GetDataSetSurrogateZipBytes(mSmtio.GetSmtIO(masterId, woId))); }
public byte[] GetFixtureInfo() { return(mlc.GetDataSetSurrogateZipBytes(fixture.GetFixtureInfo(null))); }
public byte[] Get_DSInfo(DateTime rec_Sta, DateTime rec_End, out string status) { return(mlc.GetDataSetSurrogateZipBytes(Ds.Get_DSInfo(rec_Sta, rec_End, out status))); }
public byte[] GetRoleInfo() { return(mlc.GetDataSetSurrogateZipBytes(mRoleinfo.GetRoleInfo())); }
public byte[] Get_B_MAIL_T(string Mail_App) { return(mlc.GetDataSetSurrogateZipBytes(Mail.Get_B_MAIL_T(Mail_App))); }
public byte[] GetQueryWipAllInfo(string ColumnName, string Data) { return(mlc.GetDataSetSurrogateZipBytes(mWiptracking.Get_WIP_TRACKING(ColumnName, Data))); }
public byte[] ReworkWipQuery(string Colnum, string Data) { return(mlc.GetDataSetSurrogateZipBytes(WipWh.ReworkWipQuery(Colnum, Data))); }
public byte[] GetGangInfoByTrsn(string trsn) { return(mlc.GetDataSetSurrogateZipBytes(mPartstorehousehad.GetGangInfoByTrsn(trsn))); }
public byte[] GettCustomerAll() { return(mlc.GetDataSetSurrogateZipBytes(_tCustomer.GettCustomerAll())); }
public byte[] GetDeptInfo() { return(mlc.GetDataSetSurrogateZipBytes(mdeptinfo.GetDeptInfo())); }
public byte[] GetAllStationNoInfo() { return(mlc.GetDataSetSurrogateZipBytes(mStationNoinfo.GetAllStationNoInfo())); //string sql = "select stationno,lineId,machineId,des,stationspec from stationnoInfo"; //return BLL.BllMsSqllib.Instance.ExecuteQuerySQL(sql); }
public byte[] Sel_QCNO_Date(DateTime Dt, string Line) { return(mlc.GetDataSetSurrogateZipBytes(fqc.Sel_QCNO_Date(Dt, Line))); }
public byte[] GetRouteInfoByWoId(string routgroupId) { return(mlc.GetDataSetSurrogateZipBytes(mRouteinfo.GetRouteInfoByRoutgroupId(routgroupId)));// BLL.BllMsSqllib.Instance.MsSqlLib.GetRouteByWoId(woId); }
public byte[] GetErrorCode() { return(mlc.GetDataSetSurrogateZipBytes(mErrcode.GetErrorCode(null))); }
public byte[] GetSmtKpMaster(string MasterId) { return(mlc.GetDataSetSurrogateZipBytes(mSmtkpmaster.GetSmtKpMaster(MasterId))); }
public byte[] GetWipKeyParts(string SNTYPE, string SNVAL) { return(mlc.GetDataSetSurrogateZipBytes(mWipkeypart.GetWipKeyParts(SNTYPE, SNVAL))); }
public byte[] GetReasonCode() { return(mlc.GetDataSetSurrogateZipBytes(mReasoncode.GetReasonCode())); }
public byte[] QueryPartMaps(string kpnumber) { return(mlc.GetDataSetSurrogateZipBytes(mPartmap.QueryPartMaps(kpnumber))); }
public byte[] GetKeyParts() { return(mlc.GetDataSetSurrogateZipBytes(mKeypart.GetKeyParts())); }
public byte[] GetFacInfo() { return(mlc.GetDataSetSurrogateZipBytes(mFacinfo.GetFacInfo())); }
public byte[] GetRepairSnInfo(string ESN) { return(mlc.GetDataSetSurrogateZipBytes(mRepairinfo.GetRepairSnInfo(ESN))); }
public byte[] GetAllMachineInfo() { return(mlc.GetDataSetSurrogateZipBytes(mMachineid.GetMachineInfo(null))); }
public byte[] QueryVersionInfoByWo(string wo) { return(mlc.GetDataSetSurrogateZipBytes(VersionMark.QueryVersionInfoByWo(wo))); }
public byte[] Get_ProductRealSummary(string WORK_DATE, string Class) { return(mlc.GetDataSetSurrogateZipBytes(Prs.Get_Product_Real_Summary(WORK_DATE, Class))); }
public byte[] GetProductSnType(string partnumber) { return(mlc.GetDataSetSurrogateZipBytes(mProduct.GetProductSnType(partnumber))); }