This commit is contained in:
@@ -5367,7 +5367,62 @@ namespace AyaNova
|
||||
|
||||
|
||||
//============== START OF SCRIPT =========================
|
||||
User.ClearLayout.Clear(User.AdministratorID);
|
||||
//a2a2632b-8945-4d93-8513-2ee65c91adc3
|
||||
|
||||
/*
|
||||
<?xml version="1.0" encoding="utf-16" standalone="yes"?>
|
||||
<GRIDCRITERIA>
|
||||
<COLUMNITEM CM="aPartCategory.aName" UI="LT_O_PartCategory" PIN="0" WIDTH="114" SORT="ASC" />
|
||||
<COLUMNITEM CM="aPart.aPartNumber" UI="LT_Part_Label_PartNumber" PIN="0" WIDTH="111" />
|
||||
<COLUMNITEM CM="aPart.aName" UI="LT_O_Part" PIN="0" WIDTH="135" />
|
||||
<COLUMNITEM CM="aManufacturers.aName" UI="LT_Part_Label_ManufacturerID" PIN="0" WIDTH="114" />
|
||||
<COLUMNITEM CM="aWholesalers.aName" UI="LT_Part_Label_WholesalerID" PIN="0" WIDTH="104" />
|
||||
<COLUMNITEM CM="aUnitOfMeasure.aName" UI="LT_O_UnitOfMeasure" PIN="0" WIDTH="127" />
|
||||
<COLUMNITEM CM="aPart.aTrackSerialNumber" UI="LT_Part_Label_TrackSerialNumber" PIN="0" WIDTH="151" />
|
||||
<COLUMNITEM CM="aPart.aActive" UI="LT_Part_Label_Active" PIN="0" WIDTH="78" />
|
||||
<COLUMNITEM CM="aPart.aManufacturerNumber" UI="LT_Part_Label_ManufacturerNumber" PIN="0" WIDTH="157" />
|
||||
<COLUMNITEM CM="aPart.aRetail" UI="LT_Part_Label_Retail" PIN="0" WIDTH="79" />
|
||||
<COLUMNITEM CM="aPartAssembly.aName" UI="LT_O_PartAssembly" PIN="0" WIDTH="120" />
|
||||
<COLUMNITEM CM="aPart.aAlternativeWholesalerNumber" UI="LT_Part_Label_AlternativeWholesalerNumber" PIN="0" WIDTH="204" />
|
||||
<COLUMNITEM CM="aPart.aCost" UI="LT_Part_Label_Cost" PIN="0" WIDTH="79" />
|
||||
<COLUMNITEM CM="grid" UI="LT_Part_Label_Custom1" PIN="0" WIDTH="106" />
|
||||
<COLUMNITEM CM="grid" UI="LT_Part_Label_Custom2" PIN="0" WIDTH="106" />
|
||||
<COLUMNITEM CM="grid" UI="LT_Part_Label_Custom3" PIN="0" WIDTH="106" />
|
||||
<COLUMNITEM CM="grid" UI="LT_Part_Label_Custom4" PIN="0" WIDTH="106" />
|
||||
<COLUMNITEM CM="grid" UI="LT_Part_Label_Custom5" PIN="0" WIDTH="106" />
|
||||
<COLUMNITEM CM="grid" UI="LT_Part_Label_Custom6" PIN="0" WIDTH="106" />
|
||||
<COLUMNITEM CM="grid" UI="LT_Part_Label_Custom7" PIN="0" WIDTH="106" />
|
||||
<COLUMNITEM CM="grid" UI="LT_Part_Label_Custom8" PIN="0" WIDTH="106" />
|
||||
<COLUMNITEM CM="grid" UI="LT_Part_Label_Custom9" PIN="0" WIDTH="106" />
|
||||
<COLUMNITEM CM="grid" UI="LT_Part_Label_Custom0" PIN="0" WIDTH="106" />
|
||||
<COLUMNITEM CM="aPart.aWholesalerNumber" UI="LT_Part_Label_WholesalerNumber" PIN="0" WIDTH="147" />
|
||||
<COLUMNITEM CM="AALTERNATIVEWHOLESALERS.aName" UI="LT_Part_Label_AlternativeWholesalerID" PIN="0" WIDTH="161" />
|
||||
<COLUMNITEM CM="aPart.aUPC" UI="LT_Part_Label_UPC" PIN="0" WIDTH="64" />
|
||||
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_Part_Label_PartNumber">
|
||||
<WHEREITEM COMPAREOPERATOR="Equals" CM="aPart.aID" UICOMPAREVALUE="CAB1064" TYPE="System.Guid" COMPAREVALUE="{A2A2632B-8945-4D93-8513-2EE65C91ADC3}" />
|
||||
</WHEREITEMGROUP>
|
||||
</GRIDCRITERIA>
|
||||
*/
|
||||
//Workorder.GetDescendant<WorkorderItemPart>(
|
||||
//try
|
||||
//{
|
||||
// //*********** This is the only block you really need *******
|
||||
// PartList pl = PartList.GetListForSingleItem(new Guid("a2a2632b-8945-4d93-8513-2ee65c91adc3"));//my test part id
|
||||
// PartList.PartListInfo pli = pl[0];
|
||||
// string sTheManufaturerName = pli.LT_Part_Label_ManufacturerID.Display;
|
||||
// string sTheManufacturerNumber = pli.LT_Part_Label_ManufacturerNumber;
|
||||
// string sTheWholeSalerName = pli.LT_Part_Label_WholesalerID.Display;
|
||||
// string sTheWholeSalerNumber = pli.LT_Part_Label_WholesalerNumber;
|
||||
// //*************** But the outer try catch will give you the actual error if you need it ****
|
||||
//}
|
||||
//catch (Exception ex) {
|
||||
// Exception ActualException = null;
|
||||
// while (ActualException.InnerException != null)
|
||||
// ActualException = ActualException.InnerException;
|
||||
// string ActualErrorMessage = ActualException.Message;
|
||||
//}
|
||||
//var vvvv = "blah";
|
||||
////etc
|
||||
|
||||
|
||||
//=============END OF SCRIPT ===============
|
||||
|
||||
Reference in New Issue
Block a user