Last active
March 20, 2018 02:47
-
-
Save tdcbm/136462aa1b052baded29ccf8a150789f to your computer and use it in GitHub Desktop.
Epicor Custom
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
private void oTrans_UD06Adapter_BeforeAdapterMethod(object sender, BeforeAdapterMethodArgs args) | |
{ | |
switch (args.MethodName) | |
{ | |
case "GetRows": | |
{ | |
EpiSearchBase adapterSearchForm = oTrans_UD06Adapter.SearchForm; | |
adapterSearchForm.ClearEpiSearchColumns(); | |
// Paramters: Data Column Name, Column Header Text, Width, Is Result, Position | |
adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("Key1", "Project", -1, true, 0), true); | |
adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("Key2", "PO Number", -1, true, 1), true); | |
adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("Key3", "Line Item", -1, true, 2), true); | |
adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("ShortChar01", "Part Class", -1, true, 3), true); | |
adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("ShortChar02", "Part Type", -1, true, 4), true); | |
adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("ShortChar03", "No of Package", -1, true, 5), true); | |
adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("ShortChar04", "DO Number", -1, true, 6), true); | |
adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("ShortChar05", "PL/Inv Number", -1, true, 7), true); | |
adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("ShortChar06", "Report Number", -1, true, 8), true); | |
adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("Date01", "Received Date", -1, false, 9), true); | |
adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("Number01", "Received Qty", -1, false, 10), true); | |
adapterSearchForm.SetEpiSearchColumn(new EpiSearchColumn("Character01", "Note", -1, false, 11), true); | |
// Params: Table Name, Data Column Name, Column Header Text, Width, Is Result, Position | |
//var col1 = new EpiSearchColumn("UD06", "Key1", "Project", -1, true, 0); | |
//var myCols = new System.Collections.ArrayList(); | |
//myCols.AddRange(new object[] { col1 }); | |
//myCols.AddRange(new object[] { col1, col2, col3, col4, col5 }); | |
//for (int i = 0; i < myCols.Count; i++) | |
//{ | |
// oTrans_UD06Adapter.SearchForm.SetEpiSearchColumn((EpiSearchColumn)myCols[i], true); | |
//} | |
} | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment