Hello,
can anyone tell me why I got no issuereturn created in the dataset.
I put the right value to the selectedJobAsmblRow. don’t know why.
thanks,
Eddy
using (var issue = Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.IssueReturnSvcContract>(context))
{
try
{
this.PublishInfoMessage(“start”, Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, “”, “”);
Guid mtlQue = new Guid(“00000000-0000-0000-0000-000000000000”);
var ds1 = new Erp.Tablesets.SelectedJobAsmblTableset();
var dt = new Erp.Tablesets.SelectedJobAsmblTable();
var p = new Erp.Tablesets.SelectedJobAsmblRow();
p.Company = baqRow["JobMtl_Company"].ToString();
p.JobNum = JobNum;
p.AssemblySeq = Int32.Parse(baqRow["JobMtl_AssemblySeq"].ToString());
p.RowMod="A";
p.SysRowID=mtlQue;
this.PublishInfoMessage(Int32.Parse(baqRow["JobMtl_AssemblySeq"].ToString()).ToString(), Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "", "");
this.PublishInfoMessage(JobNum, Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "", "");
dt.Add(p);
ds1.Tables.Add(dt);
string pcMessage;
Erp.Tablesets.IssueReturnTableset ds2 = issue.GetNewJobAsmblMultiple("STK-MTL", mtlQue, "IssueMaterial", ref ds1, out pcMessage);
this.PublishInfoMessage("message=" + pcMessage, Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "", "");
this.PublishInfoMessage(ds2.IssueReturn.Count().ToString(), Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "", "");