private tinpwip GetSingleWip() { wsINP.IwsINPClient client = new wsINP.IwsINPClient(); tinpwip wip = null; try { List<MESParameterInfo> lstParameters = new List<MESParameterInfo>(); lstParameters.Add(new MESParameterInfo() { ParamName = "customerid", ParamValue = RepairHis.customerid, ParamType = "string" }); lstParameters.Add(new MESParameterInfo() { ParamName = "custorderno", ParamValue = RepairHis.custorderno, ParamType = "string" }); lstParameters.Add(new MESParameterInfo() { ParamName = "styleno", ParamValue = RepairHis.styleno, ParamType = "string" }); lstParameters.Add(new MESParameterInfo() { ParamName = "color", ParamValue = RepairHis.color, ParamType = "string" }); lstParameters.Add(new MESParameterInfo() { ParamName = "size", ParamValue = RepairHis.size, ParamType = "string" }); lstParameters.Add(new MESParameterInfo() { ParamName = "status", ParamValue = RepairHis.step, ParamType = "string" }); lstParameters.Add(new MESParameterInfo() { ParamName = "workgroup", ParamValue = RepairHis.workgroup, ParamType = "string" }); wip = client.GetSingleWip(baseForm.CurrentContextInfo, lstParameters.ToArray<MESParameterInfo>()); } catch (Exception ex) { throw ex; } finally { baseForm.CloseWCF(client); } return wip; }
private tinpwip GetSingleWip() { wsINP.IwsINPClient client = new wsINP.IwsINPClient(); tinpwip wip = null; try { if (dtlDt.Rows.Count > 0) { List<MESParameterInfo> lstParameters = new List<MESParameterInfo>(); lstParameters.Add(new MESParameterInfo() { ParamName = "custorderno", ParamValue = dtlDt.Rows[0]["custorderno"].ToString(), ParamType = "string" }); lstParameters.Add(new MESParameterInfo() { ParamName = "styleno", ParamValue = dtlDt.Rows[0]["styleno"].ToString(), ParamType = "string" }); lstParameters.Add(new MESParameterInfo() { ParamName = "color", ParamValue = dtlDt.Rows[0]["color"].ToString(), ParamType = "string" }); lstParameters.Add(new MESParameterInfo() { ParamName = "size", ParamValue = dtlDt.Rows[0]["size"].ToString(), ParamType = "string" }); lstParameters.Add(new MESParameterInfo() { ParamName = "status", ParamValue = dtlDt.Rows[0]["step"].ToString(), ParamType = "string" }); lstParameters.Add(new MESParameterInfo() { ParamName = "workgroup", ParamValue = dtlDt.Rows[0]["workgroup"].ToString(), ParamType = "string" }); wip = client.GetSingleWip(baseForm.CurrentContextInfo, lstParameters.ToArray<MESParameterInfo>()); } } catch (Exception ex) { throw ex; } finally { baseForm.CloseWCF(client); } return wip; }