Created
May 25, 2018 23:44
-
-
Save hasokeric/68782f10cb1919cc3a48fc77bf263b0e to your computer and use it in GitHub Desktop.
Accept Launch Opts Context Value
This file contains hidden or 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
//Gist File: Form Load Context Value | |
private void ReturnMtlForm_Load(object sender, EventArgs args) | |
{ | |
btnGetLots.Enabled = false; | |
if (ReturnMtlForm.LaunchFormOptions.ContextValue != null) | |
{ | |
// Get passed values | |
List<object> ctxVal = new List<object>(); | |
ctxVal = (List<object>)ReturnMtlForm.LaunchFormOptions.ContextValue; | |
string jobNum = ctxVal[0].ToString(); | |
string partNum = ctxVal[1].ToString(); | |
string jobSeq = ctxVal[2].ToString(); | |
string lotNum = ctxVal[3].ToString(); | |
// Create new request | |
oTrans.GetNew(); | |
edvRtnMtl.dataView[edvRtnMtl.Row]["FromJobNum"] = jobNum; | |
edvRtnMtl.dataView[edvRtnMtl.Row]["FromJobSeq"] = jobSeq; | |
edvRtnMtl.dataView[edvRtnMtl.Row]["LotNum"] = lotNum; | |
if(lotNum != "") | |
{ | |
btnGetLots.Enabled = true; | |
} | |
edvRtnMtl.Notify(new EpiNotifyArgs(oTrans, edvRtnMtl.Column, edvRtnMtl.Row)); | |
GetPartTranDetails(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.