Justas
(Justas)
October 25, 2022, 7:05am
1
Hi,
Is it possible to replicate something like this in baq report? We are going to do physical inventorization and we need to implement label printing in to Count Tag Entry. Previously we had this VBA function in E9, but for me it is too tricky to rebuild it in new epicor.
Justas
(Justas)
October 27, 2022, 9:46am
2
implemented this by customization:
private void MassPrint_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
LaunchFormOptions launchObject = new LaunchFormOptions();
launchObject.IsModal = false;
launchObject.ValueIn = BuildMtlTagParams();
ProcessCaller.LaunchCallbackForm(oTrans, "Erp.UIRpt.MtlTags", launchObject);
}
//Build string form mass print params
private string BuildMtlTagParams()
{
EpiDataView edv = (EpiDataView)(oTrans.EpiDataViews["tagView"]);
String PartNum = edv.dataView[edv.Row]["PartNum"].ToString();
String PartDesc = edv.dataView[edv.Row]["PartNumPartDescription"].ToString();
String BinNum = edv.dataView[edv.Row]["BinNum"].ToString();
String UOM = edv.dataView[edv.Row]["UOM"].ToString();
String CountedQty = edv.dataView[edv.Row]["CountedQty"].ToString();
String WhseCode = edv.dataView[edv.Row]["WarehouseCode"].ToString();
//MessageBox.Show(PartNum + " " + BinNum + " " + UOM + " " + CountedQty + " " + WhseCode);
string str = "~";
StringBuilder stringBuilder = new StringBuilder(string.Empty);
stringBuilder.Append(PartNum); // partnum
stringBuilder.Append(str);
stringBuilder.Append(PartDesc); // part desc
stringBuilder.Append(str);
stringBuilder.Append(CountedQty); //qty
stringBuilder.Append(str);
stringBuilder.Append(UOM); //vnt
stringBuilder.Append(str);
stringBuilder.Append(UOM); //vnt
stringBuilder.Append(str);
stringBuilder.Append(0); //VendorNum
stringBuilder.Append(str);
stringBuilder.Append(0); //POnum
stringBuilder.Append(str);
stringBuilder.Append(0); //POline
stringBuilder.Append(str);
stringBuilder.Append(0);//POrel
stringBuilder.Append(str);
stringBuilder.Append(WhseCode); //whse
stringBuilder.Append(str);
stringBuilder.Append(BinNum); //bin
stringBuilder.Append(str);
stringBuilder.Append(""); //?
stringBuilder.Append(str);
stringBuilder.Append(""); //?
return stringBuilder.ToString();
}