Last active
June 24, 2020 16:50
-
-
Save tdcbm/e76837b768cee87bc0491256cafbbdc5 to your computer and use it in GitHub Desktop.
Epicor Launch Form with parameters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Code src: http://lethanhname.blogspot.co.id/2014/03/epicor-launch-form-with-parameters.html | |
public void CallLot(string PartNum,string LotNum) | |
{ | |
try | |
{ | |
string[] CompoundKeys =new string[]{PartNum,LotNum}; | |
CompoundKeyBinding cb=new CompoundKeyBinding(CompoundKeys,null,null); | |
LaunchFormOptions opts = new LaunchFormOptions(); | |
opts.ValueIn=cb; | |
ProcessCaller.LaunchForm(oTrans, "IMMT1051", opts); | |
} | |
catch (Exception exception) | |
{ | |
ExceptionBox.Show(exception); | |
} | |
} | |
LaunchFormOptions launchObject = new LaunchFormOptions(); | |
launchObject.IsModal = true; | |
Hashtable hashtable = new Hashtable(); | |
hashtable.Add("CashDeskID", this.CashDeskID); | |
hashtable.Add("ReferenceNum", this.ReferenceNum); | |
launchObject.ValueIn = hashtable; | |
ProcessCaller.LaunchForm(this, "Epicor.Mfg.UIRpt.PrintPettyCashDoc", launchObject); | |
launchObject.IsModal = true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment