Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // **************************************************
- // Custom code for SalesOrderForm
- // Created: 2015-07-24 4:48:06 PM
- // **************************************************
- extern alias Erp_Contracts_BO_AlternatePart;
- extern alias Erp_Contracts_BO_SalesOrder;
- extern alias Erp_Contracts_BO_Quote;
- extern alias Erp_Contracts_BO_Part;
- extern alias Erp_Contracts_BO_Customer;
- extern alias Erp_Contracts_BO_RMAProc;
- extern alias Erp_Contracts_BO_OrderDtlSearch;
- extern alias Erp_Contracts_BO_OrderHist;
- extern alias Erp_Contracts_BO_QuoteDtlSearch;
- extern alias Erp_Contracts_BO_SerialNumberSearch;
- extern alias Erp_Contracts_BO_ShipTo;
- using System;
- using System.ComponentModel;
- using System.Data;
- using System.Diagnostics;
- using System.Windows.Forms;
- using Erp.UI;
- using Ice.Lib.Customization;
- using Ice.Lib.ExtendedProps;
- using Ice.Lib.Framework;
- using Ice.Lib.Searches;
- using Ice.UI.FormFunctions;
- using System.Threading;
- using System.Collections.Generic;
- public class Script
- {
- private Ice.Lib.Customization.CustomScriptManager csm;
- private Erp.UI.App.SalesOrderEntry.Transaction oTrans;
- private Erp.UI.App.SalesOrderEntry.SalesOrderForm SalesOrderForm;
- private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager baseToolbarsManager;
- private System.Data.DataTable OrderRel_Column;
- private Ice.Lib.Framework.EpiDataView OrderRelTree_Row;
- private System.Data.DataTable OrderMsc_Column;
- private Ice.Lib.Framework.EpiDataView OrderMsc_Row;
- private System.Data.DataTable QuoteDtlAttch_Column;
- private Ice.Lib.Framework.EpiDataView AutoAttachQuoteDtl_Row;
- private System.Data.DataTable QuoteHedList_Column;
- private Ice.Lib.Framework.EpiDataView QuoteHedList_Row;
- private System.Data.DataTable OrderHed_Column;
- private Ice.Lib.Framework.EpiDataView OrderHed_Row;
- private System.Data.DataTable BookDtl_Column;
- private Ice.Lib.Framework.EpiDataView BookDtl_Row;
- private System.Data.DataTable SerialNumberSearch_Column;
- private Ice.Lib.Framework.EpiDataView SNS_Row;
- private System.Data.DataTable SaveOTSParams_Column;
- private Ice.Lib.Framework.EpiDataView SaveOTS_Row;
- private System.Data.DataTable OrderHedList_Column;
- private Ice.Lib.Framework.EpiDataView OrderHedList_Row;
- private System.Data.DataTable BpmData_Column;
- private Ice.Lib.Framework.EpiDataView CallContextBpmData_Row;
- private System.Data.DataTable ccTable_Column;
- private Ice.Lib.Framework.EpiDataView CreditTran2_Row;
- private System.Data.DataTable SalesKitPartInfo_Column;
- private Ice.Lib.Framework.EpiDataView KitPartInfo_Row;
- private Ice.Lib.Framework.EpiDataView OrderRel_Row;
- private System.Data.DataTable OrderDtlAttch_Column;
- private Ice.Lib.Framework.EpiDataView AutoAttachOrderDtl_Row;
- private Ice.Lib.Framework.EpiDataView AutoAttachSalesKits_Row;
- private System.Data.DataTable QuoteDtl_Column;
- private Ice.Lib.Framework.EpiDataView QuoteDtl_Row;
- private System.Data.DataTable TaxConnectStatus_Column;
- private Ice.Lib.Framework.EpiDataView TaxConnectStatus_Row;
- private System.Data.DataTable OrderRelTax_Column;
- private Ice.Lib.Framework.EpiDataView OrdRelTax_Row;
- private System.Data.DataTable _Column;
- private Ice.Lib.Framework.EpiDataView NoBoundField_Row;
- private System.Data.DataTable OrderDtl_Column;
- private Ice.Lib.Framework.EpiDataView SalesKits_Row;
- private System.Data.DataTable OHOrderMsc_Column;
- private Ice.Lib.Framework.EpiDataView OHOrderMsc_Row;
- private System.Data.DataTable Client_Column;
- private Ice.Lib.Framework.EpiDataView CallContextClientData_Row;
- private Ice.Lib.Framework.EpiDataView OrderDtlTree_Row;
- private System.Data.DataTable OrderHedUPS_Column;
- private Ice.Lib.Framework.EpiDataView OrderHedUPS_Row;
- private Ice.Lib.Framework.EpiDataView OrderDtl_Row;
- private System.Data.DataTable OrderRepComm_Column;
- private Ice.Lib.Framework.EpiDataView OrderRepComm_Row;
- private System.Data.DataTable CreditTran_Column;
- private Ice.Lib.Framework.EpiDataView CreditTran_Row;
- private Ice.Lib.Framework.EpiDataView CopyNew_Row;
- private System.Data.DataTable HedTaxSum_Column;
- private Ice.Lib.Framework.EpiDataView HedTaxSum_Row;
- private System.Data.DataTable JobProd_Column;
- private Ice.Lib.Framework.EpiDataView JobProd_Row;
- private System.Data.DataTable OrderSched_Column;
- private Ice.Lib.Framework.EpiDataView OrderSched_Row;
- private System.Data.DataTable QuoteQty_Column;
- private Ice.Lib.Framework.EpiDataView QuoteQty_Row;
- private System.Data.DataTable PartSubs_Column;
- private Ice.Lib.Framework.EpiDataView AlternatePart_Row;
- private Ice.Lib.Framework.EpiDataView AutoAttachOrderDtlTree_Row;
- private System.Data.DataTable OrderHedAttch_Column;
- private Ice.Lib.Framework.EpiDataView AutoAttachOrderHed_Row;
- private System.Data.DataTable QuoteHedAttch_Column;
- private Ice.Lib.Framework.EpiDataView AutoAttachQuoteHed_Row;
- private System.Data.DataTable QuoteHed_Column;
- private Ice.Lib.Framework.EpiDataView QuoteHed_Row;
- private Ice.Lib.Framework.EpiLabel epiLabelC1;
- private Ice.Lib.Framework.EpiLabel epiLabelC1_e3a135f9_5a5d_4acc_bdfa_903304760694;
- private Ice.Lib.Framework.EpiLabel epiLabelC2;
- private Ice.Lib.Framework.EpiLabel epiLabelC2_0ea5aad9_e947_423b_8fdc_9354006db4ff;
- private Ice.Lib.Framework.EpiLabel epiLabel1;
- private Ice.Lib.Framework.EpiLabel epiLabel1_cff20c3e_2165_403f_9df6_10ecb182ecf3;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC1;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC1_d7452973_f266_4fb1_9f50_86176582bf24;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC2;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC2_176cff2f_225a_4610_94ef_000a2864cda0;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC3;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC3_99151df7_883c_4c1c_b485_d883b5081423;
- private Ice.Lib.Framework.EpiGroupBox epiGroupBoxC1;
- private Ice.Lib.Framework.EpiGroupBox epiGroupBoxC1_861c7222_896e_4323_89fa_dd2fc20e089d;
- private Ice.Lib.Framework.EpiUltraCombo empBasicComboC1;
- private Ice.Lib.Framework.EpiUltraCombo empBasicComboC1_ac1ee53e_0b23_47f6_9769_6095c17c2044;
- private Ice.Lib.Framework.EpiLabel epiLabelC3;
- private Ice.Lib.Framework.EpiLabel epiLabelC3_99a98a01_c3ac_4fb5_8cea_fadec62a48d3;
- private Ice.Lib.Framework.EpiButton btnSelectContact;
- private Ice.Lib.Framework.EpiButton btnSelectContact_083f1035_9ee3_4f28_a49b_e649a4b1ef07;
- private Ice.Lib.Framework.EpiNumericEditor epiNumericEditorC1;
- private Ice.Lib.Framework.EpiNumericEditor epiNumericEditorC1_ca7ed2c7_7441_4b16_993a_3e759df6558f;
- private Ice.Lib.Framework.EpiUltraCombo cmvPerConName;
- private Ice.Lib.Framework.EpiUltraCombo cmvPerConName_75b07942_9780_420a_9470_9f5d3b854bc1;
- private Ice.Lib.Framework.EpiLabel epiLabelC4;
- private Ice.Lib.Framework.EpiLabel epiLabelC4_0ba376e5_5be4_4241_9e59_ff6a202943c8;
- private Ice.Lib.Framework.EpiUltraCombo cmbContactDOB;
- private Ice.Lib.Framework.EpiUltraCombo cmbContactDOB_15183d62_19c7_4a21_89fc_041569bddd1d;
- private Ice.Lib.Framework.EpiGroupBox epiGroupBoxC2;
- private Ice.Lib.Framework.EpiGroupBox epiGroupBoxC2_d46d8466_975c_47d9_afd6_a3d209400a9c;
- private Ice.Lib.Framework.EpiLabel epiLabelC5;
- private Ice.Lib.Framework.EpiLabel epiLabelC5_865e5065_22b0_400c_b0a4_aac02471dba6;
- private Ice.Lib.Framework.EpiTextBox txtFirstName;
- private Ice.Lib.Framework.EpiTextBox txtFirstName_2be92edc_ff56_4b31_a15a_46e25fe59ed4;
- private Ice.Lib.Framework.EpiLabel epiLabelC6;
- private Ice.Lib.Framework.EpiLabel epiLabelC6_c8d16e2d_2cac_4ac8_899c_b51966821ec2;
- private Ice.Lib.Framework.EpiLabel epiLabelC7;
- private Ice.Lib.Framework.EpiLabel epiLabelC7_04b8564e_4197_41c2_906d_011c9b81350e;
- private Ice.Lib.Framework.EpiDateTimeEditor epiDateTimeEditorC1;
- private Ice.Lib.Framework.EpiDateTimeEditor epiDateTimeEditorC1_d2a94790_bb2c_42df_a5a1_8e7a967e5e89;
- private Ice.Lib.Framework.EpiButton btnCreateNewContact;
- private Ice.Lib.Framework.EpiButton btnCreateNewContact_78a10f50_af7a_44ef_9078_bc8a81137437;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC4;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC4_f14878e2_0e8d_403d_bd68_c354cfad6c54;
- private Ice.Lib.Framework.EpiLabel epiLabelC8;
- private Ice.Lib.Framework.EpiLabel epiLabelC8_b3ffbad4_d2a9_4122_b9a7_a6836107d70b;
- private Ice.Lib.Framework.EpiUltraCombo cmbEmployeeNum;
- private Ice.Lib.Framework.EpiUltraCombo cmbEmployeeNum_5dda1115_e352_4546_92de_bad715e5ea32;
- private Ice.Lib.Framework.EpiLabel epiLabelC1aa;
- private Ice.Lib.Framework.EpiLabel epiLabelC1aa_93eb9282_d276_46dc_919c_83178d357010;
- private Ice.Lib.Framework.EpiTextBox txtEmpNum;
- private Ice.Lib.Framework.EpiTextBox txtEmpNum_2332ab42_e00b_4339_960b_da0a8d8c6bec;
- private Ice.Lib.Framework.EpiDockManagerPanel Sheet1;
- private Ice.Lib.Framework.EpiDockManagerPanel Sheet1_adbc0ab4_b441_46d9_ae92_b32960a53d07;
- private Ice.Lib.Framework.EpiDockManagerPanel Sheet2;
- private Ice.Lib.Framework.EpiDockManagerPanel Sheet2_7f5c5a31_d34c_412b_993d_8866b44f278b;
- private Ice.Lib.Framework.EpiDockManagerPanel Sheet3;
- private Ice.Lib.Framework.EpiDockManagerPanel Sheet3_eaab0101_2d15_4678_921f_525edb65bf89;
- private Ice.Lib.Framework.EpiUltraGrid grdDtlList;
- private Ice.Lib.Framework.EpiUltraGrid grdDtlList_71fd4fbb_38d8_4207_9712_0d8022341a17;
- private Ice.Lib.Framework.EpiGroupBox epiGroupBoxC3;
- private Ice.Lib.Framework.EpiGroupBox epiGroupBoxC3_cc88c880_a173_4547_bcc4_dc99c2a5aa86;
- private Ice.Lib.Framework.EpiLabel epiLabelC9;
- private Ice.Lib.Framework.EpiLabel epiLabelC9_2b32ec55_7087_4c0d_98a5_6dc5e01697f5;
- private Ice.Lib.Framework.EpiLabel epiLabelC10;
- private Ice.Lib.Framework.EpiLabel epiLabelC10_edfe3fa7_3d56_4630_a12e_5106ae6b95cf;
- private Ice.Lib.Framework.EpiUltraCombo cmbSearchType;
- private Ice.Lib.Framework.EpiUltraCombo cmbSearchType_d8a0cba0_fd0f_4655_b18e_6bc972dbe676;
- private Ice.Lib.Framework.EpiLabel epiLabelC11;
- private Ice.Lib.Framework.EpiLabel epiLabelC11_47617eef_27d0_44e7_bd5d_db99aaf795ce;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC5;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC5_7fe56970_1ebf_4709_bb41_4ce0005dd485;
- private Ice.Lib.Framework.EpiLabel epiLabelC12;
- private Ice.Lib.Framework.EpiLabel epiLabelC12_a4c9459a_23f7_400a_80ac_d1ea51010626;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC6;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC6_96805b1c_337a_4eb5_b5cc_c08569d9ff7a;
- private Ice.Lib.Framework.EpiLabel epiLabelC1comp;
- private Ice.Lib.Framework.EpiLabel epiLabelC1comp_c32e2c43_2eda_4200_a86a_b7a364ae5070;
- private Ice.Lib.Framework.EpiTextBox txtCorpName;
- private Ice.Lib.Framework.EpiTextBox txtCorpName_70602aa3_216f_4b49_bc86_f28916a00838;
- private Ice.Lib.Framework.EpiLabel epiLabelC13co;
- private Ice.Lib.Framework.EpiLabel epiLabelC13co_a4790422_9982_4dc1_b067_ce54e766c1ca;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC7co;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC7co_b83d2486_c5a9_43c8_803b_8888683e7ee8;
- private Ice.Lib.Framework.EpiGroupBox epiGroupBoxC4;
- private Ice.Lib.Framework.EpiGroupBox epiGroupBoxC4_7f0f2080_5d48_4965_b198_b5abd21808ad;
- private Ice.Lib.Framework.EpiTextBox txtCustomerComments;
- private Ice.Lib.Framework.EpiTextBox txtCustomerComments_6f8f35a4_951a_4321_b607_409fdf473674;
- private Ice.Lib.Framework.BAQCombo baqComboC1;
- private Ice.Lib.Framework.BAQCombo baqComboC1_dbb6f21e_c202_4481_aecf_ec708f1c5cfc;
- private Ice.Lib.Framework.EpiButton btnRefreshContact;
- private Ice.Lib.Framework.EpiButton btnRefreshContact_e04e7880_2ecf_4f63_8982_39f691360c87;
- private Ice.Lib.Framework.EpiTextBox txtCustomerPONum;
- private Ice.Lib.Framework.EpiTextBox txtCustomerPONum_687a17ed_1050_44f3_9aac_ae9c910aab0c;
- private Ice.Lib.Framework.EpiLabel lblCustomerPONum;
- private Ice.Lib.Framework.EpiLabel lblCustomerPONum_cfb06a0e_5891_4251_b9e6_6d73c38575bc;
- private Ice.Lib.Framework.EpiTextBox txtQuery;
- private Ice.Lib.Framework.EpiTextBox txtQuery_ff235923_b42a_41db_8183_05600a8a5e79;
- private Ice.Lib.Framework.EpiGroupBox epiGroupBoxC5;
- private Ice.Lib.Framework.EpiGroupBox epiGroupBoxC5_9b0aa4db_799b_4a8a_af54_f294666dfd04;
- private Ice.Lib.Framework.EpiLabel epiLabelC14;
- private Ice.Lib.Framework.EpiLabel epiLabelC14_cd4d20fa_be1f_426e_958d_425ac53e7084;
- private Ice.Lib.Framework.EpiUltraCombo cmbHeaderPriceList;
- private Ice.Lib.Framework.EpiUltraCombo cmbHeaderPriceList_0efb8c61_d74c_46de_94f7_a33195f3a038;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC7;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxC7_8361b0ff_09a4_4566_9a1d_1f895ae3d87e;
- private Ice.Lib.Framework.EpiTextBox txtCarrierAcctNo;
- private Ice.Lib.Framework.EpiTextBox txtCarrierAcctNo_6247443d_220c_4d04_a078_5769c79aafcf;
- private Ice.Lib.Framework.EpiLabel epiLabelSalesRepCode1;
- private Ice.Lib.Framework.EpiLabel epiLabelSalesRepCode1_9db1e8fe_4bec_4711_9ddd_a5d404e5ce49;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxSalesRepCode1;
- private Ice.Lib.Framework.EpiTextBox epiTextBoxSalesRepCode1_921c33db_2c1a_441f_8767_e80bffdfadde;
- private Ice.Lib.Framework.EpiLabel lblReceivedDate;
- private Ice.Lib.Framework.EpiLabel lblReceivedDate_d2bbe9d8_5c71_4e15_8185_b34234d2ff45;
- private Ice.Lib.Framework.EpiDateTimeEditor epiDateTimeEditorC2;
- private Ice.Lib.Framework.EpiDateTimeEditor epiDateTimeEditorC2_7e27ea24_2dcf_4418_b394_c35b9a76bd7b;
- private Ice.Lib.Framework.EpiLabel lblFitTech;
- private Ice.Lib.Framework.EpiLabel lblFitTech_56fbc65b_0811_403b_be99_f2d2b6901306;
- private Ice.Lib.Framework.EpiCombo cboFitTech;
- private Ice.Lib.Framework.EpiCombo cboFitTech_57525ffd_72f8_4949_90b1_8b0fb4aaa065;
- public void InitializeGlobalVariables(Ice.Lib.Customization.CustomScriptManager csm)
- {
- this.csm = csm;
- this.oTrans = ((Erp.UI.App.SalesOrderEntry.Transaction)(this.csm.GetGlobalInstance("oTrans")));
- this.SalesOrderForm = ((Erp.UI.App.SalesOrderEntry.SalesOrderForm)(this.csm.GetGlobalInstance("SalesOrderForm")));
- this.baseToolbarsManager = ((Infragistics.Win.UltraWinToolbars.UltraToolbarsManager)(this.csm.GetGlobalInstance("baseToolbarsManager")));
- this.OrderRel_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("OrderRel_Column")));
- this.OrderRelTree_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("OrderRelTree_Row")));
- this.OrderMsc_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("OrderMsc_Column")));
- this.OrderMsc_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("OrderMsc_Row")));
- this.QuoteDtlAttch_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("QuoteDtlAttch_Column")));
- this.AutoAttachQuoteDtl_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("AutoAttachQuoteDtl_Row")));
- this.QuoteHedList_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("QuoteHedList_Column")));
- this.QuoteHedList_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("QuoteHedList_Row")));
- this.OrderHed_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("OrderHed_Column")));
- this.OrderHed_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("OrderHed_Row")));
- this.BookDtl_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("BookDtl_Column")));
- this.BookDtl_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("BookDtl_Row")));
- this.SerialNumberSearch_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("SerialNumberSearch_Column")));
- this.SNS_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("SNS_Row")));
- this.SaveOTSParams_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("SaveOTSParams_Column")));
- this.SaveOTS_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("SaveOTS_Row")));
- this.OrderHedList_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("OrderHedList_Column")));
- this.OrderHedList_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("OrderHedList_Row")));
- this.BpmData_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("BpmData_Column")));
- this.CallContextBpmData_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("CallContextBpmData_Row")));
- this.ccTable_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("ccTable_Column")));
- this.CreditTran2_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("CreditTran2_Row")));
- this.SalesKitPartInfo_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("SalesKitPartInfo_Column")));
- this.KitPartInfo_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("KitPartInfo_Row")));
- this.OrderRel_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("OrderRel_Row")));
- this.OrderDtlAttch_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("OrderDtlAttch_Column")));
- this.AutoAttachOrderDtl_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("AutoAttachOrderDtl_Row")));
- this.AutoAttachSalesKits_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("AutoAttachSalesKits_Row")));
- this.QuoteDtl_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("QuoteDtl_Column")));
- this.QuoteDtl_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("QuoteDtl_Row")));
- this.TaxConnectStatus_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("TaxConnectStatus_Column")));
- this.TaxConnectStatus_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("TaxConnectStatus_Row")));
- this.OrderRelTax_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("OrderRelTax_Column")));
- this.OrdRelTax_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("OrdRelTax_Row")));
- this._Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("_Column")));
- this.NoBoundField_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("NoBoundField_Row")));
- this.OrderDtl_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("OrderDtl_Column")));
- this.SalesKits_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("SalesKits_Row")));
- this.OHOrderMsc_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("OHOrderMsc_Column")));
- this.OHOrderMsc_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("OHOrderMsc_Row")));
- this.Client_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("Client_Column")));
- this.CallContextClientData_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("CallContextClientData_Row")));
- this.OrderDtlTree_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("OrderDtlTree_Row")));
- this.OrderHedUPS_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("OrderHedUPS_Column")));
- this.OrderHedUPS_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("OrderHedUPS_Row")));
- this.OrderDtl_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("OrderDtl_Row")));
- this.OrderRepComm_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("OrderRepComm_Column")));
- this.OrderRepComm_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("OrderRepComm_Row")));
- this.CreditTran_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("CreditTran_Column")));
- this.CreditTran_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("CreditTran_Row")));
- this.CopyNew_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("CopyNew_Row")));
- this.HedTaxSum_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("HedTaxSum_Column")));
- this.HedTaxSum_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("HedTaxSum_Row")));
- this.JobProd_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("JobProd_Column")));
- this.JobProd_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("JobProd_Row")));
- this.OrderSched_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("OrderSched_Column")));
- this.OrderSched_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("OrderSched_Row")));
- this.QuoteQty_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("QuoteQty_Column")));
- this.QuoteQty_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("QuoteQty_Row")));
- this.PartSubs_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("PartSubs_Column")));
- this.AlternatePart_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("AlternatePart_Row")));
- this.AutoAttachOrderDtlTree_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("AutoAttachOrderDtlTree_Row")));
- this.OrderHedAttch_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("OrderHedAttch_Column")));
- this.AutoAttachOrderHed_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("AutoAttachOrderHed_Row")));
- this.QuoteHedAttch_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("QuoteHedAttch_Column")));
- this.AutoAttachQuoteHed_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("AutoAttachQuoteHed_Row")));
- this.QuoteHed_Column = ((System.Data.DataTable)(this.csm.GetGlobalInstance("QuoteHed_Column")));
- this.QuoteHed_Row = ((Ice.Lib.Framework.EpiDataView)(this.csm.GetGlobalInstance("QuoteHed_Row")));
- Ice.Lib.Customization.PersonalizeCustomizeManager personalizeCustomizeManager = this.csm.PersonalizeCustomizeManager;
- System.Windows.Forms.Control topControl = personalizeCustomizeManager.TopControl;
- topControl.FindForm().SuspendLayout();
- // Creating custom targets.
- this.epiLabelC1 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC1_e3a135f9_5a5d_4acc_bdfa_903304760694 = this.epiLabelC1;
- System.Collections.Hashtable customControls = personalizeCustomizeManager.CustControlMan.CustomControlsHT;
- customControls.Add("e3a135f9-5a5d-4acc-bdfa-903304760694", this.epiLabelC1);
- System.Collections.Hashtable controlsHT = personalizeCustomizeManager.ControlsHT;
- controlsHT.Add("e3a135f9-5a5d-4acc-bdfa-903304760694", this.epiLabelC1);
- this.epiLabelC1.Name = "epiLabelC1";
- this.epiLabelC1.EpiGuid = "e3a135f9-5a5d-4acc-bdfa-903304760694";
- this.epiLabelC2 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC2_0ea5aad9_e947_423b_8fdc_9354006db4ff = this.epiLabelC2;
- customControls.Add("0ea5aad9-e947-423b-8fdc-9354006db4ff", this.epiLabelC2);
- controlsHT.Add("0ea5aad9-e947-423b-8fdc-9354006db4ff", this.epiLabelC2);
- this.epiLabelC2.Name = "epiLabelC2";
- this.epiLabelC2.EpiGuid = "0ea5aad9-e947-423b-8fdc-9354006db4ff";
- this.epiLabel1 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabel1_cff20c3e_2165_403f_9df6_10ecb182ecf3 = this.epiLabel1;
- customControls.Add("cff20c3e-2165-403f-9df6-10ecb182ecf3", this.epiLabel1);
- controlsHT.Add("cff20c3e-2165-403f-9df6-10ecb182ecf3", this.epiLabel1);
- this.epiLabel1.Name = "epiLabel1";
- this.epiLabel1.EpiGuid = "cff20c3e-2165-403f-9df6-10ecb182ecf3";
- this.epiTextBoxC1 = new Ice.Lib.Framework.EpiTextBox();
- this.epiTextBoxC1_d7452973_f266_4fb1_9f50_86176582bf24 = this.epiTextBoxC1;
- customControls.Add("d7452973-f266-4fb1-9f50-86176582bf24", this.epiTextBoxC1);
- controlsHT.Add("d7452973-f266-4fb1-9f50-86176582bf24", this.epiTextBoxC1);
- this.epiTextBoxC1.Name = "epiTextBoxC1";
- this.epiTextBoxC1.EpiGuid = "d7452973-f266-4fb1-9f50-86176582bf24";
- this.epiTextBoxC2 = new Ice.Lib.Framework.EpiTextBox();
- this.epiTextBoxC2_176cff2f_225a_4610_94ef_000a2864cda0 = this.epiTextBoxC2;
- customControls.Add("176cff2f-225a-4610-94ef-000a2864cda0", this.epiTextBoxC2);
- controlsHT.Add("176cff2f-225a-4610-94ef-000a2864cda0", this.epiTextBoxC2);
- this.epiTextBoxC2.Name = "epiTextBoxC2";
- this.epiTextBoxC2.EpiGuid = "176cff2f-225a-4610-94ef-000a2864cda0";
- this.epiTextBoxC3 = new Ice.Lib.Framework.EpiTextBox();
- this.epiTextBoxC3_99151df7_883c_4c1c_b485_d883b5081423 = this.epiTextBoxC3;
- customControls.Add("99151df7-883c-4c1c-b485-d883b5081423", this.epiTextBoxC3);
- controlsHT.Add("99151df7-883c-4c1c-b485-d883b5081423", this.epiTextBoxC3);
- this.epiTextBoxC3.Name = "epiTextBoxC3";
- this.epiTextBoxC3.EpiGuid = "99151df7-883c-4c1c-b485-d883b5081423";
- this.epiGroupBoxC1 = new Ice.Lib.Framework.EpiGroupBox();
- this.epiGroupBoxC1_861c7222_896e_4323_89fa_dd2fc20e089d = this.epiGroupBoxC1;
- customControls.Add("861c7222-896e-4323-89fa-dd2fc20e089d", this.epiGroupBoxC1);
- controlsHT.Add("861c7222-896e-4323-89fa-dd2fc20e089d", this.epiGroupBoxC1);
- this.epiGroupBoxC1.Name = "epiGroupBoxC1";
- this.epiGroupBoxC1.EpiGuid = "861c7222-896e-4323-89fa-dd2fc20e089d";
- this.empBasicComboC1 = Ice.Lib.Customization.Designers.RetrieverComboDesigner.CreateRetriever("ac1ee53e-0b23-47f6-9769-6095c17c2044", "EmpBasic", "EmpBasicCombo", personalizeCustomizeManager);
- this.empBasicComboC1_ac1ee53e_0b23_47f6_9769_6095c17c2044 = this.empBasicComboC1;
- customControls.Add("ac1ee53e-0b23-47f6-9769-6095c17c2044", this.empBasicComboC1);
- controlsHT.Add("ac1ee53e-0b23-47f6-9769-6095c17c2044", this.empBasicComboC1);
- this.empBasicComboC1.Name = "empBasicComboC1";
- this.empBasicComboC1.EpiGuid = "ac1ee53e-0b23-47f6-9769-6095c17c2044";
- this.epiLabelC3 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC3_99a98a01_c3ac_4fb5_8cea_fadec62a48d3 = this.epiLabelC3;
- customControls.Add("99a98a01-c3ac-4fb5-8cea-fadec62a48d3", this.epiLabelC3);
- controlsHT.Add("99a98a01-c3ac-4fb5-8cea-fadec62a48d3", this.epiLabelC3);
- this.epiLabelC3.Name = "epiLabelC3";
- this.epiLabelC3.EpiGuid = "99a98a01-c3ac-4fb5-8cea-fadec62a48d3";
- this.btnSelectContact = new Ice.Lib.Framework.EpiButton();
- this.btnSelectContact_083f1035_9ee3_4f28_a49b_e649a4b1ef07 = this.btnSelectContact;
- customControls.Add("083f1035-9ee3-4f28-a49b-e649a4b1ef07", this.btnSelectContact);
- controlsHT.Add("083f1035-9ee3-4f28-a49b-e649a4b1ef07", this.btnSelectContact);
- this.btnSelectContact.Name = "btnSelectContact";
- this.btnSelectContact.EpiGuid = "083f1035-9ee3-4f28-a49b-e649a4b1ef07";
- this.epiNumericEditorC1 = new Ice.Lib.Framework.EpiNumericEditor();
- this.epiNumericEditorC1_ca7ed2c7_7441_4b16_993a_3e759df6558f = this.epiNumericEditorC1;
- customControls.Add("ca7ed2c7-7441-4b16-993a-3e759df6558f", this.epiNumericEditorC1);
- controlsHT.Add("ca7ed2c7-7441-4b16-993a-3e759df6558f", this.epiNumericEditorC1);
- this.epiNumericEditorC1.Name = "epiNumericEditorC1";
- this.epiNumericEditorC1.EpiGuid = "ca7ed2c7-7441-4b16-993a-3e759df6558f";
- this.cmvPerConName = new Ice.Lib.Framework.EpiUltraCombo();
- this.cmvPerConName_75b07942_9780_420a_9470_9f5d3b854bc1 = this.cmvPerConName;
- customControls.Add("75b07942-9780-420a-9470-9f5d3b854bc1", this.cmvPerConName);
- controlsHT.Add("75b07942-9780-420a-9470-9f5d3b854bc1", this.cmvPerConName);
- this.cmvPerConName.Name = "cmvPerConName";
- this.cmvPerConName.EpiGuid = "75b07942-9780-420a-9470-9f5d3b854bc1";
- this.epiLabelC4 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC4_0ba376e5_5be4_4241_9e59_ff6a202943c8 = this.epiLabelC4;
- customControls.Add("0ba376e5-5be4-4241-9e59-ff6a202943c8", this.epiLabelC4);
- controlsHT.Add("0ba376e5-5be4-4241-9e59-ff6a202943c8", this.epiLabelC4);
- this.epiLabelC4.Name = "epiLabelC4";
- this.epiLabelC4.EpiGuid = "0ba376e5-5be4-4241-9e59-ff6a202943c8";
- this.cmbContactDOB = new Ice.Lib.Framework.EpiUltraCombo();
- this.cmbContactDOB_15183d62_19c7_4a21_89fc_041569bddd1d = this.cmbContactDOB;
- customControls.Add("15183d62-19c7-4a21-89fc-041569bddd1d", this.cmbContactDOB);
- controlsHT.Add("15183d62-19c7-4a21-89fc-041569bddd1d", this.cmbContactDOB);
- this.cmbContactDOB.Name = "cmbContactDOB";
- this.cmbContactDOB.EpiGuid = "15183d62-19c7-4a21-89fc-041569bddd1d";
- this.epiGroupBoxC2 = new Ice.Lib.Framework.EpiGroupBox();
- this.epiGroupBoxC2_d46d8466_975c_47d9_afd6_a3d209400a9c = this.epiGroupBoxC2;
- customControls.Add("d46d8466-975c-47d9-afd6-a3d209400a9c", this.epiGroupBoxC2);
- controlsHT.Add("d46d8466-975c-47d9-afd6-a3d209400a9c", this.epiGroupBoxC2);
- this.epiGroupBoxC2.Name = "epiGroupBoxC2";
- this.epiGroupBoxC2.EpiGuid = "d46d8466-975c-47d9-afd6-a3d209400a9c";
- this.epiLabelC5 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC5_865e5065_22b0_400c_b0a4_aac02471dba6 = this.epiLabelC5;
- customControls.Add("865e5065-22b0-400c-b0a4-aac02471dba6", this.epiLabelC5);
- controlsHT.Add("865e5065-22b0-400c-b0a4-aac02471dba6", this.epiLabelC5);
- this.epiLabelC5.Name = "epiLabelC5";
- this.epiLabelC5.EpiGuid = "865e5065-22b0-400c-b0a4-aac02471dba6";
- this.txtFirstName = new Ice.Lib.Framework.EpiTextBox();
- this.txtFirstName_2be92edc_ff56_4b31_a15a_46e25fe59ed4 = this.txtFirstName;
- customControls.Add("2be92edc-ff56-4b31-a15a-46e25fe59ed4", this.txtFirstName);
- controlsHT.Add("2be92edc-ff56-4b31-a15a-46e25fe59ed4", this.txtFirstName);
- this.txtFirstName.Name = "txtFirstName";
- this.txtFirstName.EpiGuid = "2be92edc-ff56-4b31-a15a-46e25fe59ed4";
- this.epiLabelC6 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC6_c8d16e2d_2cac_4ac8_899c_b51966821ec2 = this.epiLabelC6;
- customControls.Add("c8d16e2d-2cac-4ac8-899c-b51966821ec2", this.epiLabelC6);
- controlsHT.Add("c8d16e2d-2cac-4ac8-899c-b51966821ec2", this.epiLabelC6);
- this.epiLabelC6.Name = "epiLabelC6";
- this.epiLabelC6.EpiGuid = "c8d16e2d-2cac-4ac8-899c-b51966821ec2";
- this.epiLabelC7 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC7_04b8564e_4197_41c2_906d_011c9b81350e = this.epiLabelC7;
- customControls.Add("04b8564e-4197-41c2-906d-011c9b81350e", this.epiLabelC7);
- controlsHT.Add("04b8564e-4197-41c2-906d-011c9b81350e", this.epiLabelC7);
- this.epiLabelC7.Name = "epiLabelC7";
- this.epiLabelC7.EpiGuid = "04b8564e-4197-41c2-906d-011c9b81350e";
- this.epiDateTimeEditorC1 = new Ice.Lib.Framework.EpiDateTimeEditor();
- this.epiDateTimeEditorC1_d2a94790_bb2c_42df_a5a1_8e7a967e5e89 = this.epiDateTimeEditorC1;
- customControls.Add("d2a94790-bb2c-42df-a5a1-8e7a967e5e89", this.epiDateTimeEditorC1);
- controlsHT.Add("d2a94790-bb2c-42df-a5a1-8e7a967e5e89", this.epiDateTimeEditorC1);
- this.epiDateTimeEditorC1.Name = "epiDateTimeEditorC1";
- this.epiDateTimeEditorC1.EpiGuid = "d2a94790-bb2c-42df-a5a1-8e7a967e5e89";
- this.btnCreateNewContact = new Ice.Lib.Framework.EpiButton();
- this.btnCreateNewContact_78a10f50_af7a_44ef_9078_bc8a81137437 = this.btnCreateNewContact;
- customControls.Add("78a10f50-af7a-44ef-9078-bc8a81137437", this.btnCreateNewContact);
- controlsHT.Add("78a10f50-af7a-44ef-9078-bc8a81137437", this.btnCreateNewContact);
- this.btnCreateNewContact.Name = "btnCreateNewContact";
- this.btnCreateNewContact.EpiGuid = "78a10f50-af7a-44ef-9078-bc8a81137437";
- this.epiTextBoxC4 = new Ice.Lib.Framework.EpiTextBox();
- this.epiTextBoxC4_f14878e2_0e8d_403d_bd68_c354cfad6c54 = this.epiTextBoxC4;
- customControls.Add("f14878e2-0e8d-403d-bd68-c354cfad6c54", this.epiTextBoxC4);
- controlsHT.Add("f14878e2-0e8d-403d-bd68-c354cfad6c54", this.epiTextBoxC4);
- this.epiTextBoxC4.Name = "epiTextBoxC4";
- this.epiTextBoxC4.EpiGuid = "f14878e2-0e8d-403d-bd68-c354cfad6c54";
- this.epiLabelC8 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC8_b3ffbad4_d2a9_4122_b9a7_a6836107d70b = this.epiLabelC8;
- customControls.Add("b3ffbad4-d2a9-4122-b9a7-a6836107d70b", this.epiLabelC8);
- controlsHT.Add("b3ffbad4-d2a9-4122-b9a7-a6836107d70b", this.epiLabelC8);
- this.epiLabelC8.Name = "epiLabelC8";
- this.epiLabelC8.EpiGuid = "b3ffbad4-d2a9-4122-b9a7-a6836107d70b";
- this.cmbEmployeeNum = new Ice.Lib.Framework.EpiUltraCombo();
- this.cmbEmployeeNum_5dda1115_e352_4546_92de_bad715e5ea32 = this.cmbEmployeeNum;
- customControls.Add("5dda1115-e352-4546-92de-bad715e5ea32", this.cmbEmployeeNum);
- controlsHT.Add("5dda1115-e352-4546-92de-bad715e5ea32", this.cmbEmployeeNum);
- this.cmbEmployeeNum.Name = "cmbEmployeeNum";
- this.cmbEmployeeNum.EpiGuid = "5dda1115-e352-4546-92de-bad715e5ea32";
- this.epiLabelC1aa = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC1aa_93eb9282_d276_46dc_919c_83178d357010 = this.epiLabelC1aa;
- customControls.Add("93eb9282-d276-46dc-919c-83178d357010", this.epiLabelC1aa);
- controlsHT.Add("93eb9282-d276-46dc-919c-83178d357010", this.epiLabelC1aa);
- this.epiLabelC1aa.Name = "epiLabelC1aa";
- this.epiLabelC1aa.EpiGuid = "93eb9282-d276-46dc-919c-83178d357010";
- this.txtEmpNum = new Ice.Lib.Framework.EpiTextBox();
- this.txtEmpNum_2332ab42_e00b_4339_960b_da0a8d8c6bec = this.txtEmpNum;
- customControls.Add("2332ab42-e00b-4339-960b-da0a8d8c6bec", this.txtEmpNum);
- controlsHT.Add("2332ab42-e00b-4339-960b-da0a8d8c6bec", this.txtEmpNum);
- this.txtEmpNum.Name = "txtEmpNum";
- this.txtEmpNum.EpiGuid = "2332ab42-e00b-4339-960b-da0a8d8c6bec";
- this.Sheet1 = new Ice.Lib.Framework.EpiDockManagerPanel();
- this.Sheet1_adbc0ab4_b441_46d9_ae92_b32960a53d07 = this.Sheet1;
- customControls.Add("adbc0ab4-b441-46d9-ae92-b32960a53d07", this.Sheet1);
- controlsHT.Add("adbc0ab4-b441-46d9-ae92-b32960a53d07", this.Sheet1);
- this.Sheet1.Name = "Sheet1";
- this.Sheet1.EpiGuid = "adbc0ab4-b441-46d9-ae92-b32960a53d07";
- this.Sheet2 = new Ice.Lib.Framework.EpiDockManagerPanel();
- this.Sheet2_7f5c5a31_d34c_412b_993d_8866b44f278b = this.Sheet2;
- customControls.Add("7f5c5a31-d34c-412b-993d-8866b44f278b", this.Sheet2);
- controlsHT.Add("7f5c5a31-d34c-412b-993d-8866b44f278b", this.Sheet2);
- this.Sheet2.Name = "Sheet2";
- this.Sheet2.EpiGuid = "7f5c5a31-d34c-412b-993d-8866b44f278b";
- this.Sheet3 = new Ice.Lib.Framework.EpiDockManagerPanel();
- this.Sheet3_eaab0101_2d15_4678_921f_525edb65bf89 = this.Sheet3;
- customControls.Add("eaab0101-2d15-4678-921f-525edb65bf89", this.Sheet3);
- controlsHT.Add("eaab0101-2d15-4678-921f-525edb65bf89", this.Sheet3);
- this.Sheet3.Name = "Sheet3";
- this.Sheet3.EpiGuid = "eaab0101-2d15-4678-921f-525edb65bf89";
- this.grdDtlList = new Ice.Lib.Framework.EpiUltraGrid();
- this.grdDtlList_71fd4fbb_38d8_4207_9712_0d8022341a17 = this.grdDtlList;
- customControls.Add("71fd4fbb-38d8-4207-9712-0d8022341a17", this.grdDtlList);
- controlsHT.Add("71fd4fbb-38d8-4207-9712-0d8022341a17", this.grdDtlList);
- this.grdDtlList.Name = "grdDtlList";
- this.grdDtlList.EpiGuid = "71fd4fbb-38d8-4207-9712-0d8022341a17";
- this.epiGroupBoxC3 = new Ice.Lib.Framework.EpiGroupBox();
- this.epiGroupBoxC3_cc88c880_a173_4547_bcc4_dc99c2a5aa86 = this.epiGroupBoxC3;
- customControls.Add("cc88c880-a173-4547-bcc4-dc99c2a5aa86", this.epiGroupBoxC3);
- controlsHT.Add("cc88c880-a173-4547-bcc4-dc99c2a5aa86", this.epiGroupBoxC3);
- this.epiGroupBoxC3.Name = "epiGroupBoxC3";
- this.epiGroupBoxC3.EpiGuid = "cc88c880-a173-4547-bcc4-dc99c2a5aa86";
- this.epiLabelC9 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC9_2b32ec55_7087_4c0d_98a5_6dc5e01697f5 = this.epiLabelC9;
- customControls.Add("2b32ec55-7087-4c0d-98a5-6dc5e01697f5", this.epiLabelC9);
- controlsHT.Add("2b32ec55-7087-4c0d-98a5-6dc5e01697f5", this.epiLabelC9);
- this.epiLabelC9.Name = "epiLabelC9";
- this.epiLabelC9.EpiGuid = "2b32ec55-7087-4c0d-98a5-6dc5e01697f5";
- this.epiLabelC10 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC10_edfe3fa7_3d56_4630_a12e_5106ae6b95cf = this.epiLabelC10;
- customControls.Add("edfe3fa7-3d56-4630-a12e-5106ae6b95cf", this.epiLabelC10);
- controlsHT.Add("edfe3fa7-3d56-4630-a12e-5106ae6b95cf", this.epiLabelC10);
- this.epiLabelC10.Name = "epiLabelC10";
- this.epiLabelC10.EpiGuid = "edfe3fa7-3d56-4630-a12e-5106ae6b95cf";
- this.cmbSearchType = new Ice.Lib.Framework.EpiUltraCombo();
- this.cmbSearchType_d8a0cba0_fd0f_4655_b18e_6bc972dbe676 = this.cmbSearchType;
- customControls.Add("d8a0cba0-fd0f-4655-b18e-6bc972dbe676", this.cmbSearchType);
- controlsHT.Add("d8a0cba0-fd0f-4655-b18e-6bc972dbe676", this.cmbSearchType);
- this.cmbSearchType.Name = "cmbSearchType";
- this.cmbSearchType.EpiGuid = "d8a0cba0-fd0f-4655-b18e-6bc972dbe676";
- this.epiLabelC11 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC11_47617eef_27d0_44e7_bd5d_db99aaf795ce = this.epiLabelC11;
- customControls.Add("47617eef-27d0-44e7-bd5d-db99aaf795ce", this.epiLabelC11);
- controlsHT.Add("47617eef-27d0-44e7-bd5d-db99aaf795ce", this.epiLabelC11);
- this.epiLabelC11.Name = "epiLabelC11";
- this.epiLabelC11.EpiGuid = "47617eef-27d0-44e7-bd5d-db99aaf795ce";
- this.epiTextBoxC5 = new Ice.Lib.Framework.EpiTextBox();
- this.epiTextBoxC5_7fe56970_1ebf_4709_bb41_4ce0005dd485 = this.epiTextBoxC5;
- customControls.Add("7fe56970-1ebf-4709-bb41-4ce0005dd485", this.epiTextBoxC5);
- controlsHT.Add("7fe56970-1ebf-4709-bb41-4ce0005dd485", this.epiTextBoxC5);
- this.epiTextBoxC5.Name = "epiTextBoxC5";
- this.epiTextBoxC5.EpiGuid = "7fe56970-1ebf-4709-bb41-4ce0005dd485";
- this.epiLabelC12 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC12_a4c9459a_23f7_400a_80ac_d1ea51010626 = this.epiLabelC12;
- customControls.Add("a4c9459a-23f7-400a-80ac-d1ea51010626", this.epiLabelC12);
- controlsHT.Add("a4c9459a-23f7-400a-80ac-d1ea51010626", this.epiLabelC12);
- this.epiLabelC12.Name = "epiLabelC12";
- this.epiLabelC12.EpiGuid = "a4c9459a-23f7-400a-80ac-d1ea51010626";
- this.epiTextBoxC6 = new Ice.Lib.Framework.EpiTextBox();
- this.epiTextBoxC6_96805b1c_337a_4eb5_b5cc_c08569d9ff7a = this.epiTextBoxC6;
- customControls.Add("96805b1c-337a-4eb5-b5cc-c08569d9ff7a", this.epiTextBoxC6);
- controlsHT.Add("96805b1c-337a-4eb5-b5cc-c08569d9ff7a", this.epiTextBoxC6);
- this.epiTextBoxC6.Name = "epiTextBoxC6";
- this.epiTextBoxC6.EpiGuid = "96805b1c-337a-4eb5-b5cc-c08569d9ff7a";
- this.epiLabelC1comp = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC1comp_c32e2c43_2eda_4200_a86a_b7a364ae5070 = this.epiLabelC1comp;
- customControls.Add("c32e2c43-2eda-4200-a86a-b7a364ae5070", this.epiLabelC1comp);
- controlsHT.Add("c32e2c43-2eda-4200-a86a-b7a364ae5070", this.epiLabelC1comp);
- this.epiLabelC1comp.Name = "epiLabelC1comp";
- this.epiLabelC1comp.EpiGuid = "c32e2c43-2eda-4200-a86a-b7a364ae5070";
- this.txtCorpName = new Ice.Lib.Framework.EpiTextBox();
- this.txtCorpName_70602aa3_216f_4b49_bc86_f28916a00838 = this.txtCorpName;
- customControls.Add("70602aa3-216f-4b49-bc86-f28916a00838", this.txtCorpName);
- controlsHT.Add("70602aa3-216f-4b49-bc86-f28916a00838", this.txtCorpName);
- this.txtCorpName.Name = "txtCorpName";
- this.txtCorpName.EpiGuid = "70602aa3-216f-4b49-bc86-f28916a00838";
- this.epiLabelC13co = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC13co_a4790422_9982_4dc1_b067_ce54e766c1ca = this.epiLabelC13co;
- customControls.Add("a4790422-9982-4dc1-b067-ce54e766c1ca", this.epiLabelC13co);
- controlsHT.Add("a4790422-9982-4dc1-b067-ce54e766c1ca", this.epiLabelC13co);
- this.epiLabelC13co.Name = "epiLabelC13co";
- this.epiLabelC13co.EpiGuid = "a4790422-9982-4dc1-b067-ce54e766c1ca";
- this.epiTextBoxC7co = new Ice.Lib.Framework.EpiTextBox();
- this.epiTextBoxC7co_b83d2486_c5a9_43c8_803b_8888683e7ee8 = this.epiTextBoxC7co;
- customControls.Add("b83d2486-c5a9-43c8-803b-8888683e7ee8", this.epiTextBoxC7co);
- controlsHT.Add("b83d2486-c5a9-43c8-803b-8888683e7ee8", this.epiTextBoxC7co);
- this.epiTextBoxC7co.Name = "epiTextBoxC7co";
- this.epiTextBoxC7co.EpiGuid = "b83d2486-c5a9-43c8-803b-8888683e7ee8";
- this.epiGroupBoxC4 = new Ice.Lib.Framework.EpiGroupBox();
- this.epiGroupBoxC4_7f0f2080_5d48_4965_b198_b5abd21808ad = this.epiGroupBoxC4;
- customControls.Add("7f0f2080-5d48-4965-b198-b5abd21808ad", this.epiGroupBoxC4);
- controlsHT.Add("7f0f2080-5d48-4965-b198-b5abd21808ad", this.epiGroupBoxC4);
- this.epiGroupBoxC4.Name = "epiGroupBoxC4";
- this.epiGroupBoxC4.EpiGuid = "7f0f2080-5d48-4965-b198-b5abd21808ad";
- this.txtCustomerComments = new Ice.Lib.Framework.EpiTextBox();
- this.txtCustomerComments_6f8f35a4_951a_4321_b607_409fdf473674 = this.txtCustomerComments;
- customControls.Add("6f8f35a4-951a-4321-b607-409fdf473674", this.txtCustomerComments);
- controlsHT.Add("6f8f35a4-951a-4321-b607-409fdf473674", this.txtCustomerComments);
- this.txtCustomerComments.Name = "txtCustomerComments";
- this.txtCustomerComments.EpiGuid = "6f8f35a4-951a-4321-b607-409fdf473674";
- this.baqComboC1 = new Ice.Lib.Framework.BAQCombo();
- this.baqComboC1_dbb6f21e_c202_4481_aecf_ec708f1c5cfc = this.baqComboC1;
- customControls.Add("dbb6f21e-c202-4481-aecf-ec708f1c5cfc", this.baqComboC1);
- controlsHT.Add("dbb6f21e-c202-4481-aecf-ec708f1c5cfc", this.baqComboC1);
- this.baqComboC1.Name = "baqComboC1";
- this.baqComboC1.EpiGuid = "dbb6f21e-c202-4481-aecf-ec708f1c5cfc";
- this.btnRefreshContact = new Ice.Lib.Framework.EpiButton();
- this.btnRefreshContact_e04e7880_2ecf_4f63_8982_39f691360c87 = this.btnRefreshContact;
- customControls.Add("e04e7880-2ecf-4f63-8982-39f691360c87", this.btnRefreshContact);
- controlsHT.Add("e04e7880-2ecf-4f63-8982-39f691360c87", this.btnRefreshContact);
- this.btnRefreshContact.Name = "btnRefreshContact";
- this.btnRefreshContact.EpiGuid = "e04e7880-2ecf-4f63-8982-39f691360c87";
- this.txtCustomerPONum = new Ice.Lib.Framework.EpiTextBox();
- this.txtCustomerPONum_687a17ed_1050_44f3_9aac_ae9c910aab0c = this.txtCustomerPONum;
- customControls.Add("687a17ed-1050-44f3-9aac-ae9c910aab0c", this.txtCustomerPONum);
- controlsHT.Add("687a17ed-1050-44f3-9aac-ae9c910aab0c", this.txtCustomerPONum);
- this.txtCustomerPONum.Name = "txtCustomerPONum";
- this.txtCustomerPONum.EpiGuid = "687a17ed-1050-44f3-9aac-ae9c910aab0c";
- this.lblCustomerPONum = new Ice.Lib.Framework.EpiLabel();
- this.lblCustomerPONum_cfb06a0e_5891_4251_b9e6_6d73c38575bc = this.lblCustomerPONum;
- customControls.Add("cfb06a0e-5891-4251-b9e6-6d73c38575bc", this.lblCustomerPONum);
- controlsHT.Add("cfb06a0e-5891-4251-b9e6-6d73c38575bc", this.lblCustomerPONum);
- this.lblCustomerPONum.Name = "lblCustomerPONum";
- this.lblCustomerPONum.EpiGuid = "cfb06a0e-5891-4251-b9e6-6d73c38575bc";
- this.txtQuery = new Ice.Lib.Framework.EpiTextBox();
- this.txtQuery_ff235923_b42a_41db_8183_05600a8a5e79 = this.txtQuery;
- customControls.Add("ff235923-b42a-41db-8183-05600a8a5e79", this.txtQuery);
- controlsHT.Add("ff235923-b42a-41db-8183-05600a8a5e79", this.txtQuery);
- this.txtQuery.Name = "txtQuery";
- this.txtQuery.EpiGuid = "ff235923-b42a-41db-8183-05600a8a5e79";
- this.epiGroupBoxC5 = new Ice.Lib.Framework.EpiGroupBox();
- this.epiGroupBoxC5_9b0aa4db_799b_4a8a_af54_f294666dfd04 = this.epiGroupBoxC5;
- customControls.Add("9b0aa4db-799b-4a8a-af54-f294666dfd04", this.epiGroupBoxC5);
- controlsHT.Add("9b0aa4db-799b-4a8a-af54-f294666dfd04", this.epiGroupBoxC5);
- this.epiGroupBoxC5.Name = "epiGroupBoxC5";
- this.epiGroupBoxC5.EpiGuid = "9b0aa4db-799b-4a8a-af54-f294666dfd04";
- this.epiLabelC14 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelC14_cd4d20fa_be1f_426e_958d_425ac53e7084 = this.epiLabelC14;
- customControls.Add("cd4d20fa-be1f-426e-958d-425ac53e7084", this.epiLabelC14);
- controlsHT.Add("cd4d20fa-be1f-426e-958d-425ac53e7084", this.epiLabelC14);
- this.epiLabelC14.Name = "epiLabelC14";
- this.epiLabelC14.EpiGuid = "cd4d20fa-be1f-426e-958d-425ac53e7084";
- this.cmbHeaderPriceList = new Ice.Lib.Framework.EpiUltraCombo();
- this.cmbHeaderPriceList_0efb8c61_d74c_46de_94f7_a33195f3a038 = this.cmbHeaderPriceList;
- customControls.Add("0efb8c61-d74c-46de-94f7-a33195f3a038", this.cmbHeaderPriceList);
- controlsHT.Add("0efb8c61-d74c-46de-94f7-a33195f3a038", this.cmbHeaderPriceList);
- this.cmbHeaderPriceList.Name = "cmbHeaderPriceList";
- this.cmbHeaderPriceList.EpiGuid = "0efb8c61-d74c-46de-94f7-a33195f3a038";
- this.epiTextBoxC7 = new Ice.Lib.Framework.EpiTextBox();
- this.epiTextBoxC7_8361b0ff_09a4_4566_9a1d_1f895ae3d87e = this.epiTextBoxC7;
- customControls.Add("8361b0ff-09a4-4566-9a1d-1f895ae3d87e", this.epiTextBoxC7);
- controlsHT.Add("8361b0ff-09a4-4566-9a1d-1f895ae3d87e", this.epiTextBoxC7);
- this.epiTextBoxC7.Name = "epiTextBoxC7";
- this.epiTextBoxC7.EpiGuid = "8361b0ff-09a4-4566-9a1d-1f895ae3d87e";
- this.txtCarrierAcctNo = new Ice.Lib.Framework.EpiTextBox();
- this.txtCarrierAcctNo_6247443d_220c_4d04_a078_5769c79aafcf = this.txtCarrierAcctNo;
- customControls.Add("6247443d-220c-4d04-a078-5769c79aafcf", this.txtCarrierAcctNo);
- controlsHT.Add("6247443d-220c-4d04-a078-5769c79aafcf", this.txtCarrierAcctNo);
- this.txtCarrierAcctNo.Name = "txtCarrierAcctNo";
- this.txtCarrierAcctNo.EpiGuid = "6247443d-220c-4d04-a078-5769c79aafcf";
- this.epiLabelSalesRepCode1 = new Ice.Lib.Framework.EpiLabel();
- this.epiLabelSalesRepCode1_9db1e8fe_4bec_4711_9ddd_a5d404e5ce49 = this.epiLabelSalesRepCode1;
- customControls.Add("9db1e8fe-4bec-4711-9ddd-a5d404e5ce49", this.epiLabelSalesRepCode1);
- controlsHT.Add("9db1e8fe-4bec-4711-9ddd-a5d404e5ce49", this.epiLabelSalesRepCode1);
- this.epiLabelSalesRepCode1.Name = "epiLabelSalesRepCode1";
- this.epiLabelSalesRepCode1.EpiGuid = "9db1e8fe-4bec-4711-9ddd-a5d404e5ce49";
- this.epiTextBoxSalesRepCode1 = new Ice.Lib.Framework.EpiTextBox();
- this.epiTextBoxSalesRepCode1_921c33db_2c1a_441f_8767_e80bffdfadde = this.epiTextBoxSalesRepCode1;
- customControls.Add("921c33db-2c1a-441f-8767-e80bffdfadde", this.epiTextBoxSalesRepCode1);
- controlsHT.Add("921c33db-2c1a-441f-8767-e80bffdfadde", this.epiTextBoxSalesRepCode1);
- this.epiTextBoxSalesRepCode1.Name = "epiTextBoxSalesRepCode1";
- this.epiTextBoxSalesRepCode1.EpiGuid = "921c33db-2c1a-441f-8767-e80bffdfadde";
- this.lblReceivedDate = new Ice.Lib.Framework.EpiLabel();
- this.lblReceivedDate_d2bbe9d8_5c71_4e15_8185_b34234d2ff45 = this.lblReceivedDate;
- customControls.Add("d2bbe9d8-5c71-4e15-8185-b34234d2ff45", this.lblReceivedDate);
- controlsHT.Add("d2bbe9d8-5c71-4e15-8185-b34234d2ff45", this.lblReceivedDate);
- this.lblReceivedDate.Name = "lblReceivedDate";
- this.lblReceivedDate.EpiGuid = "d2bbe9d8-5c71-4e15-8185-b34234d2ff45";
- this.epiDateTimeEditorC2 = new Ice.Lib.Framework.EpiDateTimeEditor();
- this.epiDateTimeEditorC2_7e27ea24_2dcf_4418_b394_c35b9a76bd7b = this.epiDateTimeEditorC2;
- customControls.Add("7e27ea24-2dcf-4418-b394-c35b9a76bd7b", this.epiDateTimeEditorC2);
- controlsHT.Add("7e27ea24-2dcf-4418-b394-c35b9a76bd7b", this.epiDateTimeEditorC2);
- this.epiDateTimeEditorC2.Name = "epiDateTimeEditorC2";
- this.epiDateTimeEditorC2.EpiGuid = "7e27ea24-2dcf-4418-b394-c35b9a76bd7b";
- this.lblFitTech = new Ice.Lib.Framework.EpiLabel();
- this.lblFitTech_56fbc65b_0811_403b_be99_f2d2b6901306 = this.lblFitTech;
- customControls.Add("56fbc65b-0811-403b-be99-f2d2b6901306", this.lblFitTech);
- controlsHT.Add("56fbc65b-0811-403b-be99-f2d2b6901306", this.lblFitTech);
- this.lblFitTech.Name = "lblFitTech";
- this.lblFitTech.EpiGuid = "56fbc65b-0811-403b-be99-f2d2b6901306";
- this.cboFitTech = new Ice.Lib.Framework.EpiCombo();
- this.cboFitTech_57525ffd_72f8_4949_90b1_8b0fb4aaa065 = this.cboFitTech;
- customControls.Add("57525ffd-72f8-4949-90b1-8b0fb4aaa065", this.cboFitTech);
- controlsHT.Add("57525ffd-72f8-4949-90b1-8b0fb4aaa065", this.cboFitTech);
- this.cboFitTech.Name = "cboFitTech";
- this.cboFitTech.EpiGuid = "57525ffd-72f8-4949-90b1-8b0fb4aaa065";
- // lineDetailPanel1
- Ice.Lib.Framework.EpiBasePanel local1 = ((Ice.Lib.Framework.EpiBasePanel)(personalizeCustomizeManager.ControlsHT["08909a88-e65f-46a1-acf5-84121694376d"]));
- local1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local1.Width = 1439;
- local1.Height = 677;
- local1.Controls.Add(this.epiGroupBoxC1);
- local1.Controls.Add(this.epiGroupBoxC2);
- local1.Controls.SetChildIndex(this.epiGroupBoxC1, 0);
- local1.Controls.SetChildIndex(this.epiGroupBoxC2, 0);
- System.Collections.Hashtable nativeSheets = personalizeCustomizeManager.NativeSheetsDCPsHT;
- Infragistics.Win.UltraWinDock.DockableControlPane local2 = Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.GetDockableControlPane(local1, "08909a88-e65f-46a1-acf5-84121694376d", nativeSheets);
- // grpDetail2
- Ice.Lib.Framework.EpiGroupBox local3 = ((Ice.Lib.Framework.EpiGroupBox)(personalizeCustomizeManager.ControlsHT["492bed80-396e-4065-b9b1-8807fdfcb421"]));
- local3.Top = 322;
- local3.Left = 7;
- local3.Controls.Add(this.epiLabelC1);
- local3.Controls.Add(this.epiLabelC2);
- local3.Controls.Add(this.epiLabel1);
- local3.Controls.Add(this.epiTextBoxC1);
- local3.Controls.Add(this.epiTextBoxC2);
- local3.Controls.Add(this.epiTextBoxC3);
- local3.Controls.SetChildIndex(this.epiLabelC1, 0);
- local3.Controls.SetChildIndex(this.epiLabelC2, 0);
- local3.Controls.SetChildIndex(this.epiLabel1, 0);
- local3.Controls.SetChildIndex(this.epiTextBoxC1, 0);
- local3.Controls.SetChildIndex(this.epiTextBoxC2, 0);
- local3.Controls.SetChildIndex(this.epiTextBoxC3, 0);
- // epiLabelC1
- this.epiLabelC1.Top = 206;
- this.epiLabelC1.Left = 391;
- this.epiLabelC1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC1.Width = 60;
- this.epiLabelC1.Height = 20;
- this.epiLabelC1.Text = "Cast:";
- // epiLabelC2
- this.epiLabelC2.Top = 227;
- this.epiLabelC2.Left = 613;
- this.epiLabelC2.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC2.Width = 81;
- this.epiLabelC2.Height = 20;
- this.epiLabelC2.Text = "Left Mould:";
- // epiLabel1
- this.epiLabel1.Top = 204;
- this.epiLabel1.Left = 613;
- this.epiLabel1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabel1.Width = 81;
- this.epiLabel1.Height = 20;
- this.epiLabel1.Text = "Right Mould:";
- // epiTextBoxC1
- this.epiTextBoxC1.Top = 205;
- this.epiTextBoxC1.Left = 464;
- this.epiTextBoxC1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiTextBoxC1.Width = 116;
- this.epiTextBoxC1.Height = 20;
- this.epiTextBoxC1.Text = "";
- this.epiTextBoxC1.EpiBinding = "OrderDtl.CPE_Cast_c";
- this.epiTextBoxC1.EpiLabel = "epiLabelC1";
- // epiTextBoxC2
- this.epiTextBoxC2.Top = 227;
- this.epiTextBoxC2.Left = 700;
- this.epiTextBoxC2.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiTextBoxC2.Width = 114;
- this.epiTextBoxC2.Height = 20;
- this.epiTextBoxC2.Text = "";
- this.epiTextBoxC2.EpiBinding = "OrderDtl.CPE_DspMouldLeft_c";
- this.epiTextBoxC2.EpiLabel = "epiLabelC2";
- // epiTextBoxC3
- this.epiTextBoxC3.Top = 204;
- this.epiTextBoxC3.Left = 700;
- this.epiTextBoxC3.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiTextBoxC3.Width = 114;
- this.epiTextBoxC3.Height = 20;
- this.epiTextBoxC3.Text = "";
- this.epiTextBoxC3.EpiBinding = "OrderDtl.CPE_DspMouldRight_c";
- this.epiTextBoxC3.EpiLabel = "epiLabel1";
- // epiGroupBoxC1
- this.epiGroupBoxC1.Top = 180;
- this.epiGroupBoxC1.Left = 7;
- this.epiGroupBoxC1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiGroupBoxC1.Width = 822;
- this.epiGroupBoxC1.Height = 70;
- this.epiGroupBoxC1.Text = "Contacts";
- this.epiGroupBoxC1.Controls.Add(this.empBasicComboC1);
- this.epiGroupBoxC1.Controls.Add(this.epiLabelC3);
- this.epiGroupBoxC1.Controls.Add(this.btnSelectContact);
- this.epiGroupBoxC1.Controls.Add(this.epiNumericEditorC1);
- this.epiGroupBoxC1.Controls.Add(this.cmvPerConName);
- this.epiGroupBoxC1.Controls.Add(this.epiLabelC4);
- this.epiGroupBoxC1.Controls.Add(this.cmbContactDOB);
- this.epiGroupBoxC1.Controls.Add(this.epiLabelC8);
- this.epiGroupBoxC1.Controls.Add(this.cmbEmployeeNum);
- this.epiGroupBoxC1.Controls.Add(this.epiLabelC13co);
- this.epiGroupBoxC1.Controls.Add(this.epiTextBoxC7co);
- this.epiGroupBoxC1.Controls.Add(this.btnRefreshContact);
- this.epiGroupBoxC1.Controls.Add(this.epiTextBoxC7);
- this.epiGroupBoxC1.Controls.SetChildIndex(this.epiTextBoxC7, 0);
- this.epiGroupBoxC1.Controls.SetChildIndex(this.empBasicComboC1, 1);
- this.epiGroupBoxC1.Controls.SetChildIndex(this.epiLabelC3, 1);
- this.epiGroupBoxC1.Controls.SetChildIndex(this.btnSelectContact, 1);
- this.epiGroupBoxC1.Controls.SetChildIndex(this.epiNumericEditorC1, 1);
- this.epiGroupBoxC1.Controls.SetChildIndex(this.cmvPerConName, 1);
- this.epiGroupBoxC1.Controls.SetChildIndex(this.epiLabelC4, 1);
- this.epiGroupBoxC1.Controls.SetChildIndex(this.cmbContactDOB, 1);
- this.epiGroupBoxC1.Controls.SetChildIndex(this.epiLabelC8, 1);
- this.epiGroupBoxC1.Controls.SetChildIndex(this.cmbEmployeeNum, 1);
- this.epiGroupBoxC1.Controls.SetChildIndex(this.epiLabelC13co, 1);
- this.epiGroupBoxC1.Controls.SetChildIndex(this.epiTextBoxC7co, 1);
- this.epiGroupBoxC1.Controls.SetChildIndex(this.btnRefreshContact, 1);
- // empBasicComboC1
- this.empBasicComboC1.Top = -73;
- this.empBasicComboC1.Left = 179;
- this.empBasicComboC1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.empBasicComboC1.Width = 244;
- this.empBasicComboC1.Text = "";
- this.empBasicComboC1.EpiBinding = "OrderDtl.EmployeeNum_c";
- this.empBasicComboC1.EpiLabel = "epiLabelC3";
- // erp.adapters.empbasic.dll
- // epiLabelC3
- this.epiLabelC3.Top = -73;
- this.epiLabelC3.Left = 85;
- this.epiLabelC3.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC3.Width = 88;
- this.epiLabelC3.Height = 20;
- this.epiLabelC3.Text = "Employee:";
- // btnSelectContact
- this.btnSelectContact.Top = 16;
- this.btnSelectContact.Left = 7;
- this.btnSelectContact.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.btnSelectContact.Width = 145;
- this.btnSelectContact.Height = 22;
- this.btnSelectContact.TabStop = false;
- this.btnSelectContact.Text = "Person / Contact...";
- // epiNumericEditorC1
- this.epiNumericEditorC1.Top = 18;
- this.epiNumericEditorC1.Left = 155;
- this.epiNumericEditorC1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiNumericEditorC1.Width = 72;
- this.epiNumericEditorC1.EpiBinding = "OrderDtl.PerCon_c";
- this.epiNumericEditorC1.EpiContextMenuKey = "PerCon.PerConID";
- this.epiNumericEditorC1.Nullable = true;
- // cmvPerConName
- this.cmvPerConName.Top = 18;
- this.cmvPerConName.Left = 230;
- this.cmvPerConName.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.cmvPerConName.Width = 272;
- this.cmvPerConName.TabStop = false;
- this.cmvPerConName.Text = "";
- this.cmvPerConName.EpiBinding = "OrderDtl.PerConDropDown_c";
- // epiLabelC4
- this.epiLabelC4.Top = 41;
- this.epiLabelC4.Left = 89;
- this.epiLabelC4.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC4.Width = 60;
- this.epiLabelC4.Height = 20;
- this.epiLabelC4.Text = "DOB:";
- // cmbContactDOB
- this.cmbContactDOB.Top = 41;
- this.cmbContactDOB.Left = 155;
- this.cmbContactDOB.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.cmbContactDOB.Width = 84;
- this.cmbContactDOB.TabStop = false;
- this.cmbContactDOB.Text = "";
- this.cmbContactDOB.EpiBinding = "OrderDtl.PerConDropDown_c";
- this.cmbContactDOB.EpiLabel = "epiLabelC4";
- // epiGroupBoxC2
- this.epiGroupBoxC2.Top = 250;
- this.epiGroupBoxC2.Left = 7;
- this.epiGroupBoxC2.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiGroupBoxC2.Width = 822;
- this.epiGroupBoxC2.Height = 70;
- this.epiGroupBoxC2.Text = "New Contact";
- this.epiGroupBoxC2.Controls.Add(this.epiLabelC5);
- this.epiGroupBoxC2.Controls.Add(this.txtFirstName);
- this.epiGroupBoxC2.Controls.Add(this.epiLabelC6);
- this.epiGroupBoxC2.Controls.Add(this.epiLabelC7);
- this.epiGroupBoxC2.Controls.Add(this.epiDateTimeEditorC1);
- this.epiGroupBoxC2.Controls.Add(this.btnCreateNewContact);
- this.epiGroupBoxC2.Controls.Add(this.epiTextBoxC4);
- this.epiGroupBoxC2.Controls.Add(this.epiLabelC1aa);
- this.epiGroupBoxC2.Controls.Add(this.txtEmpNum);
- this.epiGroupBoxC2.Controls.Add(this.epiLabelC1comp);
- this.epiGroupBoxC2.Controls.Add(this.txtCorpName);
- this.epiGroupBoxC2.Controls.SetChildIndex(this.epiLabelC7, 0);
- this.epiGroupBoxC2.Controls.SetChildIndex(this.epiDateTimeEditorC1, 0);
- this.epiGroupBoxC2.Controls.SetChildIndex(this.btnCreateNewContact, 0);
- this.epiGroupBoxC2.Controls.SetChildIndex(this.epiTextBoxC4, 0);
- this.epiGroupBoxC2.Controls.SetChildIndex(this.epiLabelC1aa, 0);
- this.epiGroupBoxC2.Controls.SetChildIndex(this.txtEmpNum, 0);
- this.epiGroupBoxC2.Controls.SetChildIndex(this.epiLabelC1comp, 0);
- this.epiGroupBoxC2.Controls.SetChildIndex(this.txtCorpName, 0);
- this.epiGroupBoxC2.Controls.SetChildIndex(this.epiLabelC5, 1);
- this.epiGroupBoxC2.Controls.SetChildIndex(this.txtFirstName, 1);
- this.epiGroupBoxC2.Controls.SetChildIndex(this.epiLabelC6, 1);
- // epiLabelC5
- this.epiLabelC5.Top = 13;
- this.epiLabelC5.Left = 66;
- this.epiLabelC5.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC5.Width = 83;
- this.epiLabelC5.Height = 20;
- this.epiLabelC5.Text = "First Name:";
- // txtFirstName
- this.txtFirstName.Top = 13;
- this.txtFirstName.Left = 155;
- this.txtFirstName.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.txtFirstName.Width = 198;
- this.txtFirstName.Height = 20;
- this.txtFirstName.Text = "";
- // epiLabelC6
- this.epiLabelC6.Top = 11;
- this.epiLabelC6.Left = 358;
- this.epiLabelC6.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC6.Width = 68;
- this.epiLabelC6.Height = 20;
- this.epiLabelC6.Text = "Last Name:";
- // epiLabelC7
- this.epiLabelC7.Top = 36;
- this.epiLabelC7.Left = 74;
- this.epiLabelC7.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC7.Width = 75;
- this.epiLabelC7.Height = 20;
- this.epiLabelC7.Text = "DOB:";
- // epiDateTimeEditorC1
- this.epiDateTimeEditorC1.Top = 36;
- this.epiDateTimeEditorC1.Left = 155;
- this.epiDateTimeEditorC1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiDateTimeEditorC1.Width = 92;
- this.epiDateTimeEditorC1.TabIndex = 3;
- // btnCreateNewContact
- this.btnCreateNewContact.Top = 38;
- this.btnCreateNewContact.Left = 639;
- this.btnCreateNewContact.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.btnCreateNewContact.Width = 154;
- this.btnCreateNewContact.Height = 20;
- this.btnCreateNewContact.TabIndex = 4;
- this.btnCreateNewContact.Text = "Create Contact and Select";
- // epiTextBoxC4
- this.epiTextBoxC4.Top = 11;
- this.epiTextBoxC4.Left = 432;
- this.epiTextBoxC4.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiTextBoxC4.Width = 198;
- this.epiTextBoxC4.Height = 20;
- this.epiTextBoxC4.TabIndex = 2;
- this.epiTextBoxC4.Text = "";
- this.epiTextBoxC4.EpiLabel = "epiLabelC6";
- // ice.contracts.lib.boreader.dll
- // erp.contracts.bo.percon.dll
- // epiLabelC8
- this.epiLabelC8.Top = 40;
- this.epiLabelC8.Left = 263;
- this.epiLabelC8.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC8.Width = 121;
- this.epiLabelC8.Height = 20;
- this.epiLabelC8.Text = "Employee Num:";
- // cmbEmployeeNum
- this.cmbEmployeeNum.Top = 85;
- this.cmbEmployeeNum.Left = 387;
- this.cmbEmployeeNum.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.cmbEmployeeNum.Width = 151;
- this.cmbEmployeeNum.Text = "";
- this.cmbEmployeeNum.EpiLabel = "epiLabelC8";
- // epiLabelC1aa
- this.epiLabelC1aa.Top = 36;
- this.epiLabelC1aa.Left = 253;
- this.epiLabelC1aa.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC1aa.Width = 65;
- this.epiLabelC1aa.Height = 20;
- this.epiLabelC1aa.Text = "Emp Num:";
- // txtEmpNum
- this.txtEmpNum.Top = 36;
- this.txtEmpNum.Left = 324;
- this.txtEmpNum.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.txtEmpNum.Width = 111;
- this.txtEmpNum.Height = 20;
- this.txtEmpNum.Text = "";
- this.txtEmpNum.EpiLabel = "epiLabelC1aa";
- // Sheet1
- this.Sheet1.Top = 20;
- this.Sheet1.Left = 0;
- this.Sheet1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.Sheet1.Width = 950;
- this.Sheet1.Height = 686;
- this.Sheet1.AutoScroll = true;
- System.Collections.Hashtable customSheets = personalizeCustomizeManager.CustControlMan.CustomSheetsHT;
- Infragistics.Win.UltraWinDock.DockableControlPane local4 = Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.InitializeSheet(this.Sheet1, "adbc0ab4-b441-46d9-ae92-b32960a53d07", customSheets);
- if ((local4 != null))
- {
- Ice.Lib.Customization.Designers.EpiDockManagerPanelDesigner.AddCustomDockManager(personalizeCustomizeManager, this.Sheet1);
- local4.Text = "";
- local4.TextTab = "Order Line Entry";
- Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.AddCustomSheetToDockManager(personalizeCustomizeManager, local4, "baseDockManagered38e9a5-9e46-4ee3-98e9-a4acf1e72715");
- }
- // Sheet2
- this.Sheet2.Controls.Add(this.grdDtlList);
- this.Sheet2.Controls.SetChildIndex(this.grdDtlList, 0);
- this.Sheet2.AutoScroll = true;
- Infragistics.Win.UltraWinDock.DockableControlPane local5 = Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.InitializeSheet(this.Sheet2, "7f5c5a31-d34c-412b-993d-8866b44f278b", customSheets);
- if ((local5 != null))
- {
- Ice.Lib.Customization.Designers.EpiDockManagerPanelDesigner.AddCustomDockManager(personalizeCustomizeManager, this.Sheet2);
- local5.Text = "";
- local5.TextTab = "List";
- Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.AddCustomSheetToDockManager(personalizeCustomizeManager, local5, "baseDockManageradbc0ab4-b441-46d9-ae92-b32960a53d07");
- }
- // Sheet3
- this.Sheet3.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.Sheet3.Width = 1449;
- this.Sheet3.Height = 34;
- this.Sheet3.Controls.Add(this.epiLabelC10);
- this.Sheet3.Controls.Add(this.cmbSearchType);
- this.Sheet3.Controls.SetChildIndex(this.cmbSearchType, 0);
- this.Sheet3.Controls.SetChildIndex(this.epiLabelC10, 1);
- this.Sheet3.AutoScroll = true;
- Infragistics.Win.UltraWinDock.DockableControlPane local6 = Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.InitializeSheet(this.Sheet3, "eaab0101-2d15-4678-921f-525edb65bf89", customSheets);
- if ((local6 != null))
- {
- Ice.Lib.Customization.Designers.EpiDockManagerPanelDesigner.AddCustomDockManager(personalizeCustomizeManager, this.Sheet3);
- local6.Text = "";
- local6.TextTab = "Detail";
- Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.AddCustomSheetToDockManager(personalizeCustomizeManager, local6, "baseDockManageradbc0ab4-b441-46d9-ae92-b32960a53d07");
- }
- // grdDtlList
- this.grdDtlList.Top = 0;
- this.grdDtlList.Left = -136;
- this.grdDtlList.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.grdDtlList.Width = 2407;
- this.grdDtlList.Height = 1498;
- this.grdDtlList.Text = "";
- this.grdDtlList.EpiBinding = "OrderDtl";
- // ice.adapters.dynamicquery.dll
- // ice.contracts.bo.dynamicquery.dll
- // summaryPanel1
- Ice.Lib.Framework.EpiBasePanel local7 = ((Ice.Lib.Framework.EpiBasePanel)(personalizeCustomizeManager.ControlsHT["006caf0c-d74d-4ec1-9d92-43eda1f2af96"]));
- local7.Controls.Add(this.epiGroupBoxC3);
- local7.Controls.Add(this.epiGroupBoxC4);
- Ice.Lib.Framework.EpiButton local8 = ((Ice.Lib.Framework.EpiButton)(personalizeCustomizeManager.ControlsHT["ceda140d-f210-468c-9f89-02f79ba8055e"]));
- local7.Controls.SetChildIndex(local8, 0);
- Ice.Lib.Framework.EpiCheckBox local9 = ((Ice.Lib.Framework.EpiCheckBox)(personalizeCustomizeManager.ControlsHT["1161ef95-83de-4176-9160-0f78a4cf1e5e"]));
- local7.Controls.SetChildIndex(local9, 1);
- Ice.Lib.Framework.EpiLabel local10 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["c2a7cf5b-b3e3-42b4-9327-4f5c1ed3dc27"]));
- local7.Controls.SetChildIndex(local10, 2);
- Ice.Lib.Framework.EpiGroupBox local11 = ((Ice.Lib.Framework.EpiGroupBox)(personalizeCustomizeManager.ControlsHT["e0d06017-f282-4188-bc11-70ff28ca7547"]));
- local7.Controls.SetChildIndex(local11, 6);
- local7.Controls.SetChildIndex(this.epiGroupBoxC4, 7);
- local7.Controls.SetChildIndex(this.epiGroupBoxC3, 8);
- Ice.Lib.Framework.EpiButton local12 = ((Ice.Lib.Framework.EpiButton)(personalizeCustomizeManager.ControlsHT["2791c90c-41ed-4b1c-9e75-953a350edf42"]));
- local7.Controls.SetChildIndex(local12, 26);
- Infragistics.Win.UltraWinDock.DockableControlPane local13 = Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.GetDockableControlPane(local7, "006caf0c-d74d-4ec1-9d92-43eda1f2af96", nativeSheets);
- // epiGroupBoxC3
- this.epiGroupBoxC3.Top = 360;
- this.epiGroupBoxC3.Left = 430;
- this.epiGroupBoxC3.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiGroupBoxC3.Width = 148;
- this.epiGroupBoxC3.Height = 43;
- this.epiGroupBoxC3.Text = "Manufacture Site";
- this.epiGroupBoxC3.Controls.Add(this.epiLabelC9);
- this.epiGroupBoxC3.Controls.Add(this.baqComboC1);
- this.epiGroupBoxC3.Controls.SetChildIndex(this.baqComboC1, 0);
- this.epiGroupBoxC3.Controls.SetChildIndex(this.epiLabelC9, 1);
- // epiLabelC9
- this.epiLabelC9.Top = 16;
- this.epiLabelC9.Left = -1;
- this.epiLabelC9.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC9.Width = 31;
- this.epiLabelC9.Height = 20;
- this.epiLabelC9.Text = "Site:";
- // erp.adapters.plant.dll
- // epiLabelC10
- this.epiLabelC10.Top = 6;
- this.epiLabelC10.Left = 12;
- this.epiLabelC10.Width = 132;
- this.epiLabelC10.Height = 20;
- this.epiLabelC10.Text = "Contact Search Type:";
- // cmbSearchType
- this.cmbSearchType.Top = 6;
- this.cmbSearchType.Left = 150;
- this.cmbSearchType.Width = 252;
- this.cmbSearchType.Text = "";
- this.cmbSearchType.EpiLabel = "epiLabelC10";
- this.cmbSearchType.DataSource = new string[] {
- "3 Character Last Name Auto Search",
- "Button Click Search"};
- // grpHeaderData
- local11.Width = 415;
- local11.Height = 185;
- local11.Controls.Add(this.epiLabelC11);
- local11.Controls.Add(this.epiTextBoxC5);
- local11.Controls.Add(this.txtCustomerPONum);
- local11.Controls.Add(this.lblCustomerPONum);
- local11.Controls.Add(this.txtCarrierAcctNo);
- local11.Controls.Add(this.epiLabelSalesRepCode1);
- local11.Controls.Add(this.epiTextBoxSalesRepCode1);
- local11.Controls.Add(this.lblReceivedDate);
- local11.Controls.Add(this.epiDateTimeEditorC2);
- local11.Controls.Add(this.lblFitTech);
- local11.Controls.Add(this.cboFitTech);
- local11.Controls.SetChildIndex(this.txtCustomerPONum, 0);
- local11.Controls.SetChildIndex(this.lblFitTech, 0);
- local11.Controls.SetChildIndex(this.cboFitTech, 0);
- local11.Controls.SetChildIndex(this.epiLabelC11, 1);
- local11.Controls.SetChildIndex(this.epiTextBoxC5, 1);
- local11.Controls.SetChildIndex(this.lblCustomerPONum, 1);
- local11.Controls.SetChildIndex(this.txtCarrierAcctNo, 1);
- local11.Controls.SetChildIndex(this.epiLabelSalesRepCode1, 1);
- local11.Controls.SetChildIndex(this.epiTextBoxSalesRepCode1, 1);
- local11.Controls.SetChildIndex(this.lblReceivedDate, 1);
- local11.Controls.SetChildIndex(this.epiDateTimeEditorC2, 1);
- // epiLabelC11
- this.epiLabelC11.Top = 134;
- this.epiLabelC11.Left = 11;
- this.epiLabelC11.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC11.Width = 90;
- this.epiLabelC11.Height = 20;
- this.epiLabelC11.Text = "Opportunity #:";
- // epiTextBoxC5
- this.epiTextBoxC5.Top = 134;
- this.epiTextBoxC5.Left = 106;
- this.epiTextBoxC5.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiTextBoxC5.Width = 87;
- this.epiTextBoxC5.Height = 20;
- this.epiTextBoxC5.Text = "";
- this.epiTextBoxC5.EpiBinding = "OrderHed.OpportunityNum_c";
- this.epiTextBoxC5.EpiLabel = "epiLabelC11";
- // headerPanel1
- Ice.Lib.Framework.EpiBasePanel local14 = ((Ice.Lib.Framework.EpiBasePanel)(personalizeCustomizeManager.ControlsHT["4f74bb83-3b2c-422e-8743-696989560c58"]));
- local14.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local14.Width = 1447;
- local14.Height = 634;
- local14.Controls.Add(this.txtQuery);
- local14.Controls.Add(this.epiGroupBoxC5);
- local14.Controls.SetChildIndex(this.epiGroupBoxC5, 0);
- local14.Controls.SetChildIndex(this.txtQuery, 1);
- Infragistics.Win.UltraWinDock.DockableControlPane local15 = Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.GetDockableControlPane(local14, "4f74bb83-3b2c-422e-8743-696989560c58", nativeSheets);
- // grpHeaderData
- Ice.Lib.Framework.EpiGroupBox local16 = ((Ice.Lib.Framework.EpiGroupBox)(personalizeCustomizeManager.ControlsHT["924845d8-1071-4d07-be20-c367f6bff8d9"]));
- local16.Controls.Add(this.epiLabelC12);
- local16.Controls.Add(this.epiTextBoxC6);
- local16.Controls.SetChildIndex(this.epiLabelC12, 0);
- local16.Controls.SetChildIndex(this.epiTextBoxC6, 0);
- // epiLabelC12
- this.epiLabelC12.Top = 128;
- this.epiLabelC12.Left = 15;
- this.epiLabelC12.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC12.Width = 84;
- this.epiLabelC12.Height = 20;
- this.epiLabelC12.Text = "Opportunity #:";
- // epiTextBoxC6
- this.epiTextBoxC6.Top = 128;
- this.epiTextBoxC6.Left = 105;
- this.epiTextBoxC6.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiTextBoxC6.Width = 144;
- this.epiTextBoxC6.Height = 20;
- this.epiTextBoxC6.Text = "";
- this.epiTextBoxC6.EpiBinding = "OrderHed.OpportunityNum_c";
- this.epiTextBoxC6.EpiLabel = "epiLabelC12";
- // epiLabelC1comp
- this.epiLabelC1comp.Top = 37;
- this.epiLabelC1comp.Left = 447;
- this.epiLabelC1comp.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC1comp.Width = 64;
- this.epiLabelC1comp.Height = 20;
- this.epiLabelC1comp.Text = "Company:";
- // txtCorpName
- this.txtCorpName.Top = 37;
- this.txtCorpName.Left = 517;
- this.txtCorpName.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.txtCorpName.Width = 111;
- this.txtCorpName.Height = 20;
- this.txtCorpName.Text = "";
- this.txtCorpName.EpiBinding = "";
- this.txtCorpName.EpiLabel = "epiLabelC1comp";
- // epiLabelC13co
- this.epiLabelC13co.Top = 41;
- this.epiLabelC13co.Left = 518;
- this.epiLabelC13co.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC13co.Width = 80;
- this.epiLabelC13co.Height = 20;
- this.epiLabelC13co.Text = "Company:";
- // epiTextBoxC7co
- this.epiTextBoxC7co.Top = 41;
- this.epiTextBoxC7co.Left = 604;
- this.epiTextBoxC7co.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiTextBoxC7co.Width = 167;
- this.epiTextBoxC7co.Height = 20;
- this.epiTextBoxC7co.Text = "";
- this.epiTextBoxC7co.EpiBinding = "OrderDtl.PerConCorpName_c";
- this.epiTextBoxC7co.EpiLabel = "epiLabelC13co";
- // erp.contracts.bo.custcnt.dll
- // epiGroupBoxC4
- this.epiGroupBoxC4.Top = 24;
- this.epiGroupBoxC4.Left = 826;
- this.epiGroupBoxC4.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiGroupBoxC4.Width = 307;
- this.epiGroupBoxC4.Height = 379;
- this.epiGroupBoxC4.Text = "Customer Comments";
- this.epiGroupBoxC4.Controls.Add(this.txtCustomerComments);
- this.epiGroupBoxC4.Controls.SetChildIndex(this.txtCustomerComments, 0);
- // txtCustomerComments
- this.txtCustomerComments.Top = 0;
- this.txtCustomerComments.Left = 0;
- this.txtCustomerComments.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.txtCustomerComments.Width = 0;
- this.txtCustomerComments.Height = 0;
- this.txtCustomerComments.Text = "";
- this.txtCustomerComments.EpiBinding = "OrderHed.CommentsFromCustomer_c";
- this.txtCustomerComments.EpiContextMenuKey = "";
- this.txtCustomerComments.Multiline = true;
- // baqComboC1
- this.baqComboC1.Top = 16;
- this.baqComboC1.Left = 36;
- this.baqComboC1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.baqComboC1.Width = 101;
- this.baqComboC1.Text = "";
- this.baqComboC1.EpiBinding = "OrderHed.OrderSite_c";
- this.baqComboC1.EpiLabel = "epiLabelC9";
- this.baqComboC1.DisplayMember = "Plant.Name";
- this.baqComboC1.DynamicQueryID = "CPEPlants";
- this.baqComboC1.ValueMember = "Plant.Plant";
- // btnRefreshContact
- this.btnRefreshContact.Top = 15;
- this.btnRefreshContact.Left = 604;
- this.btnRefreshContact.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.btnRefreshContact.Width = 168;
- this.btnRefreshContact.Height = 20;
- this.btnRefreshContact.Text = "Refresh Contact";
- // txtCustomerPONum
- this.txtCustomerPONum.Top = 15;
- this.txtCustomerPONum.Left = 319;
- this.txtCustomerPONum.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.txtCustomerPONum.Width = 89;
- this.txtCustomerPONum.Height = 20;
- this.txtCustomerPONum.Visible = false;
- this.txtCustomerPONum.Text = "";
- this.txtCustomerPONum.EpiBinding = "OrderHed.CustomerPONum_c";
- this.txtCustomerPONum.EpiLabel = "epiLabelC13";
- // lblCustomerPONum
- this.lblCustomerPONum.Top = 15;
- this.lblCustomerPONum.Left = 197;
- this.lblCustomerPONum.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.lblCustomerPONum.Width = 116;
- this.lblCustomerPONum.Height = 20;
- this.lblCustomerPONum.Visible = false;
- this.lblCustomerPONum.Text = "PEUS Cust PO:";
- // txtQuery
- this.txtQuery.Top = 53;
- this.txtQuery.Left = 866;
- this.txtQuery.Width = 416;
- this.txtQuery.Height = 413;
- this.txtQuery.Visible = false;
- this.txtQuery.Text = "****";
- this.txtQuery.Multiline = true;
- // epiGroupBoxC5
- this.epiGroupBoxC5.Top = 559;
- this.epiGroupBoxC5.Left = 10;
- this.epiGroupBoxC5.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiGroupBoxC5.Width = 795;
- this.epiGroupBoxC5.Height = 49;
- this.epiGroupBoxC5.Text = "Override PriceList";
- this.epiGroupBoxC5.Controls.Add(this.epiLabelC14);
- this.epiGroupBoxC5.Controls.Add(this.cmbHeaderPriceList);
- this.epiGroupBoxC5.Controls.SetChildIndex(this.epiLabelC14, 0);
- this.epiGroupBoxC5.Controls.SetChildIndex(this.cmbHeaderPriceList, 0);
- // epiLabelC14
- this.epiLabelC14.Top = 16;
- this.epiLabelC14.Left = 86;
- this.epiLabelC14.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelC14.Width = 159;
- this.epiLabelC14.Height = 20;
- this.epiLabelC14.Text = "Set Price List on All Rows:";
- // cmbHeaderPriceList
- this.cmbHeaderPriceList.Top = 16;
- this.cmbHeaderPriceList.Left = 251;
- this.cmbHeaderPriceList.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.cmbHeaderPriceList.Width = 259;
- this.cmbHeaderPriceList.Text = "";
- this.cmbHeaderPriceList.EpiBinding = "OrderHed.HeaderPriceList_c";
- this.cmbHeaderPriceList.EpiLabel = "epiLabelC14";
- this.cmbHeaderPriceList.AutoWidth = false;
- this.cmbHeaderPriceList.AutoWidthOption = ((Ice.Lib.Framework.AutoWidthOptions)(1));
- // epiTextBoxC7
- this.epiTextBoxC7.Top = 40;
- this.epiTextBoxC7.Left = 390;
- this.epiTextBoxC7.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiTextBoxC7.Width = 111;
- this.epiTextBoxC7.Height = 23;
- this.epiTextBoxC7.Text = "epiTextBoxC7";
- this.epiTextBoxC7.EpiBinding = "OrderDtl.EmployeeNum_c";
- this.epiTextBoxC7.EpiLabel = "epiLabelC8";
- // txtCarrierAcctNo
- this.txtCarrierAcctNo.Top = 111;
- this.txtCarrierAcctNo.Left = 290;
- this.txtCarrierAcctNo.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.txtCarrierAcctNo.Width = 117;
- this.txtCarrierAcctNo.Height = 21;
- this.txtCarrierAcctNo.Text = "";
- this.txtCarrierAcctNo.EpiBinding = "OrderHed.CurrierAccountNum_c";
- // epiLabelSalesRepCode1
- this.epiLabelSalesRepCode1.Top = 136;
- this.epiLabelSalesRepCode1.Left = 207;
- this.epiLabelSalesRepCode1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiLabelSalesRepCode1.Width = 79;
- this.epiLabelSalesRepCode1.Height = 14;
- this.epiLabelSalesRepCode1.Text = "Sales Rep:";
- // epiTextBoxSalesRepCode1
- this.epiTextBoxSalesRepCode1.Top = 136;
- this.epiTextBoxSalesRepCode1.Left = 291;
- this.epiTextBoxSalesRepCode1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiTextBoxSalesRepCode1.Width = 117;
- this.epiTextBoxSalesRepCode1.Height = 19;
- this.epiTextBoxSalesRepCode1.Text = "";
- this.epiTextBoxSalesRepCode1.EpiBinding = "";
- this.epiTextBoxSalesRepCode1.EpiLabel = "epiLabelSalesRepCode1";
- this.epiTextBoxSalesRepCode1.ReadOnly = true;
- // lblReceivedDate
- this.lblReceivedDate.Top = 157;
- this.lblReceivedDate.Left = 3;
- this.lblReceivedDate.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.lblReceivedDate.Width = 97;
- this.lblReceivedDate.Height = 15;
- this.lblReceivedDate.Text = "Received Date:";
- // epiDateTimeEditorC2
- this.epiDateTimeEditorC2.Top = 157;
- this.epiDateTimeEditorC2.Left = 106;
- this.epiDateTimeEditorC2.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.epiDateTimeEditorC2.Width = 87;
- this.epiDateTimeEditorC2.EpiBinding = "OrderHed.ReceivedDate_c";
- this.epiDateTimeEditorC2.EpiLabel = "lblReceivedDate";
- // lblFitTech
- this.lblFitTech.Top = 163;
- this.lblFitTech.Left = 208;
- this.lblFitTech.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.lblFitTech.Width = 77;
- this.lblFitTech.Height = 9;
- this.lblFitTech.Text = "Fit Tech:";
- // cboFitTech
- this.cboFitTech.Top = 159;
- this.cboFitTech.Left = 291;
- this.cboFitTech.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- this.cboFitTech.Width = 117;
- this.cboFitTech.Text = "";
- this.cboFitTech.EpiBinding = "OrderHed.FitTechCode_c";
- this.cboFitTech.EpiLabel = "lblFitTech";
- this.cboFitTech.AutoWidth = false;
- this.cboFitTech.AutoWidthOption = ((Ice.Lib.Framework.AutoWidthOptions)(1));
- this.cboFitTech.DisplayMember = "Name";
- this.cboFitTech.EpiBOName = "Erp:BO:UserFile";
- this.cboFitTech.EpiColumns = new string[] {
- "Name"};
- this.cboFitTech.EpiSort = "Name";
- this.cboFitTech.EpiTableName = "UserFileList";
- this.cboFitTech.ValueMember = "DcdUserID";
- this.cboFitTech.EpiAltSearchMethod = "";
- // SalesOrderForm
- Ice.Lib.Framework.EpiBaseForm local17 = ((Ice.Lib.Framework.EpiBaseForm)(personalizeCustomizeManager.ControlsHT["2dcd1674-5e34-4d98-b493-c75747027376"]));
- local17.Top = 96;
- local17.Left = 224;
- local17.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local17.Width = 1536;
- local17.Height = 803;
- local17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
- local17.Text = "Sales Order Entry";
- // lblJobType
- Ice.Lib.Framework.EpiLabel local18 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["12a90401-e916-4487-99be-3239e9af9335"]));
- local18.Top = 181;
- local18.Left = 580;
- // grpDetail3
- Ice.Lib.Framework.EpiGroupBox local19 = ((Ice.Lib.Framework.EpiGroupBox)(personalizeCustomizeManager.ControlsHT["4447f9c5-dd5e-4611-ac51-1ef9a95a98da"]));
- local19.Top = 583;
- local19.Left = 7;
- // lineListPanel1
- Ice.Lib.Framework.EpiBasePanel local20 = ((Ice.Lib.Framework.EpiBasePanel)(personalizeCustomizeManager.ControlsHT["7e4a739e-ffeb-40ae-a6a3-db0479295425"]));
- local20.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local20.Width = 1457;
- local20.Height = 695;
- Ice.Lib.Framework.EpiUltraGrid local21 = ((Ice.Lib.Framework.EpiUltraGrid)(personalizeCustomizeManager.ControlsHT["4dd0227a-9d85-4d3d-a876-6cf4ea34695b"]));
- local20.Controls.SetChildIndex(local21, 0);
- Infragistics.Win.UltraWinDock.DockableControlPane local22 = Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.GetDockableControlPane(local20, "7e4a739e-ffeb-40ae-a6a3-db0479295425", nativeSheets);
- // lineCommissionsPanel1
- Ice.Lib.Framework.EpiBasePanel local23 = ((Ice.Lib.Framework.EpiBasePanel)(personalizeCustomizeManager.ControlsHT["6c823cb2-baf8-4d50-bbb1-052848f578a7"]));
- local23.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local23.Width = 1449;
- local23.Height = 683;
- Infragistics.Win.UltraWinDock.DockableControlPane local24 = Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.GetDockableControlPane(local23, "6c823cb2-baf8-4d50-bbb1-052848f578a7", nativeSheets);
- // summaryDetailPanel1
- Ice.Lib.Framework.EpiBasePanel local25 = ((Ice.Lib.Framework.EpiBasePanel)(personalizeCustomizeManager.ControlsHT["2c1407c1-7dd7-44d7-b306-a6020a279073"]));
- Ice.Lib.Framework.EpiUltraGrid local26 = ((Ice.Lib.Framework.EpiUltraGrid)(personalizeCustomizeManager.ControlsHT["bec51417-b286-4d61-a471-3912bc098905"]));
- local25.Controls.SetChildIndex(local26, 0);
- Infragistics.Win.UltraWinDock.DockableControlPane local27 = Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.GetDockableControlPane(local25, "2c1407c1-7dd7-44d7-b306-a6020a279073", nativeSheets);
- // grdSummaryOrderLines
- local26.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
- // grpCounterSale
- Ice.Lib.Framework.EpiGroupBox local28 = ((Ice.Lib.Framework.EpiGroupBox)(personalizeCustomizeManager.ControlsHT["074dd791-284f-4df2-9165-f11af41dab21"]));
- local28.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local28.Width = 148;
- local28.Height = 93;
- // releaseDetailPanel1
- Ice.Lib.Framework.EpiBasePanel local29 = ((Ice.Lib.Framework.EpiBasePanel)(personalizeCustomizeManager.ControlsHT["c8990e33-8c1f-4ae6-9976-e72e0f05e624"]));
- local29.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local29.Width = 1449;
- local29.Height = 683;
- Infragistics.Win.UltraWinDock.DockableControlPane local30 = Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.GetDockableControlPane(local29, "c8990e33-8c1f-4ae6-9976-e72e0f05e624", nativeSheets);
- // grpFrom
- Ice.Lib.Framework.EpiGroupBox local31 = ((Ice.Lib.Framework.EpiGroupBox)(personalizeCustomizeManager.ControlsHT["8a2c0fc1-a491-48f3-b8fb-a9d0a336158a"]));
- // lblPlant
- Ice.Lib.Framework.EpiLabel local32 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["628dba0a-a8e9-4f98-b493-bf27fa19a5db"]));
- local32.Top = 18;
- local32.Left = 6;
- local32.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local32.Width = 114;
- local32.Height = 20;
- // lblRequestDate
- Ice.Lib.Framework.EpiLabel local33 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["fed57e91-8de4-4223-8f78-4ca23a37641e"]));
- local33.Top = 86;
- local33.Left = 4;
- local33.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local33.Width = 96;
- local33.Height = 20;
- // lblRequestDate
- Ice.Lib.Framework.EpiLabel local34 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["c57493fd-cb1e-48e6-8d79-46a674a25a0f"]));
- local34.Top = 79;
- local34.Left = 0;
- local34.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local34.Width = 92;
- local34.Height = 24;
- // btnPlanContract
- Ice.Lib.Framework.EpiButton local35 = ((Ice.Lib.Framework.EpiButton)(personalizeCustomizeManager.ControlsHT["dfa1f52e-76bd-4ce2-b7a7-2fec99d5d283"]));
- local35.Top = 263;
- local35.Left = 513;
- // txtContractID
- Ice.Lib.Framework.EpiTextBox local36 = ((Ice.Lib.Framework.EpiTextBox)(personalizeCustomizeManager.ControlsHT["591bd649-bd34-4178-9e05-94b8bef9d350"]));
- local36.Top = 277;
- local36.Left = 591;
- // lblLinkToContract
- Ice.Lib.Framework.EpiLabel local37 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["007a6ffd-d13f-4e29-8e58-730aef7efed8"]));
- local37.Top = 282;
- local37.Left = 563;
- // grpSoldTo
- Ice.Lib.Framework.EpiGroupBox local38 = ((Ice.Lib.Framework.EpiGroupBox)(personalizeCustomizeManager.ControlsHT["14b3c788-ec83-4bb0-8f68-bc8dde4773b9"]));
- // txtCustomerCustID
- Ice.Lib.Framework.EpiTextBox local39 = ((Ice.Lib.Framework.EpiTextBox)(personalizeCustomizeManager.ControlsHT["7ece91c9-dc93-4df4-9591-f6cad7562b71"]));
- local39.EpiBinding = "OrderHed.CustomerCustID";
- // lblAutoOrderBasedDisc
- Ice.Lib.Framework.EpiLabel local40 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["0b064d61-6bd2-4e60-aad8-f4456aca39ac"]));
- local40.Top = 66;
- local40.Left = 435;
- local40.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local40.Width = 113;
- local40.Height = 25;
- local40.Text = "Apply Order Based Discounts Auto:";
- // lblPONum
- Ice.Lib.Framework.EpiLabel local41 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["a7a229f8-199f-46f6-9a38-14190da030e5"]));
- local41.Top = 14;
- local41.Left = 25;
- local41.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local41.Width = 75;
- local41.Height = 20;
- // lblERSOrder
- Ice.Lib.Framework.EpiLabel local42 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["34e2a286-231b-442e-bae1-0d546288a1ab"]));
- local42.Top = 42;
- local42.Left = 469;
- local42.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local42.Width = 80;
- local42.Height = 14;
- // chkERSORder
- Ice.Lib.Framework.EpiCheckBox local43 = ((Ice.Lib.Framework.EpiCheckBox)(personalizeCustomizeManager.ControlsHT["1fff7a5b-06fe-4268-9af8-1319da1dd662"]));
- local43.Top = 42;
- local43.Left = 555;
- // grdLineList
- local21.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
- // lblOverridePriceList
- Ice.Lib.Framework.EpiLabel local44 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["bc019cdf-e8a6-4eb9-b16e-52a345748f10"]));
- local44.Top = 107;
- local44.Left = 21;
- local44.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local44.Width = 164;
- local44.Height = 20;
- // lblDiscountPercent
- Ice.Lib.Framework.EpiLabel local45 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["742c5375-4ef6-4665-80f0-99bcb66b1dfb"]));
- local45.Text = "CarrierAcctNo";
- // nbrDiscountPercent
- Ice.Lib.Framework.EpiNumericEditor local46 = ((Ice.Lib.Framework.EpiNumericEditor)(personalizeCustomizeManager.ControlsHT["198ed247-d15b-48dd-b4d3-123938a8edd2"]));
- local46.ReadOnly = true;
- local46.Visible = false;
- local46.EpiBinding = "OrderHed.DiscountPercent";
- local46.Nullable = true;
- // lblInvcOrderCmp
- Ice.Lib.Framework.EpiLabel local47 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["2088d7c9-1d97-4f63-9a41-a8818228a253"]));
- local47.Top = 119;
- local47.Left = 450;
- local47.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local47.Width = 85;
- local47.Height = 33;
- local47.Visible = false;
- // chkInvcOrderCmp
- Ice.Lib.Framework.EpiCheckBox local48 = ((Ice.Lib.Framework.EpiCheckBox)(personalizeCustomizeManager.ControlsHT["e9a8647d-5dfd-4c15-a166-b20927994c05"]));
- local48.Top = 140;
- local48.Left = 549;
- local48.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local48.Width = 16;
- local48.Height = 17;
- // lblAutoPrint
- Ice.Lib.Framework.EpiLabel local49 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["cad82bd7-9ce2-407b-a5ed-844edfdefea6"]));
- local49.Top = 93;
- local49.Left = 446;
- local49.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local49.Width = 102;
- local49.Height = 20;
- // ckbAutoOrderBasedDisc
- Ice.Lib.Framework.EpiCheckBox local50 = ((Ice.Lib.Framework.EpiCheckBox)(personalizeCustomizeManager.ControlsHT["d0f20109-36b9-4758-8c72-b82532c34806"]));
- local50.Top = 66;
- local50.Left = 554;
- // chkAutoPrint
- Ice.Lib.Framework.EpiCheckBox local51 = ((Ice.Lib.Framework.EpiCheckBox)(personalizeCustomizeManager.ControlsHT["561bce08-8e63-455a-a453-5b15ae05100e"]));
- local51.Top = 93;
- local51.Left = 554;
- // btnCounterSale
- local8.Top = 320;
- local8.Left = 428;
- local8.Width = 148;
- local8.Height = 22;
- // btnQuickJob
- local12.Top = 126;
- local12.Left = 913;
- local12.Visible = true;
- // hedSalesPersonPanel1
- Ice.Lib.Framework.EpiBasePanel local52 = ((Ice.Lib.Framework.EpiBasePanel)(personalizeCustomizeManager.ControlsHT["4fef8b01-7269-47eb-bee9-f8b637e8d7ce"]));
- local52.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local52.Width = 1447;
- local52.Height = 634;
- Infragistics.Win.UltraWinDock.DockableControlPane local53 = Ice.Lib.Customization.Designers.EpiCustomSheetDesigner.GetDockableControlPane(local52, "4fef8b01-7269-47eb-bee9-f8b637e8d7ce", nativeSheets);
- // grpSummary
- Ice.Lib.Framework.EpiGroupBox local54 = ((Ice.Lib.Framework.EpiGroupBox)(personalizeCustomizeManager.ControlsHT["a003549e-312f-4364-9b9e-660b25e6e358"]));
- // currTotalCharges
- Ice.Lib.Framework.EpiCurrencyConver local55 = ((Ice.Lib.Framework.EpiCurrencyConver)(personalizeCustomizeManager.ControlsHT["39322272-56fb-4764-8038-29c1c044f213"]));
- local55.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
- local55.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local55.Width = 140;
- local55.Height = 21;
- // currTotalMiscellaneous
- Ice.Lib.Framework.EpiCurrencyConver local56 = ((Ice.Lib.Framework.EpiCurrencyConver)(personalizeCustomizeManager.ControlsHT["353891e4-5199-4cf3-b956-00c56e99ec19"]));
- local56.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
- local56.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local56.Width = 140;
- local56.Height = 21;
- // curTotalTax
- Ice.Lib.Framework.EpiCurrencyConver local57 = ((Ice.Lib.Framework.EpiCurrencyConver)(personalizeCustomizeManager.ControlsHT["ac863e2a-9dc1-49e1-b20d-d7600ffc47b8"]));
- local57.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
- local57.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local57.Width = 140;
- local57.Height = 21;
- // currRounding
- Ice.Lib.Framework.EpiCurrencyConver local58 = ((Ice.Lib.Framework.EpiCurrencyConver)(personalizeCustomizeManager.ControlsHT["95835344-cff5-4e35-ac3b-c13cd769ccb0"]));
- local58.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
- local58.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local58.Width = 140;
- local58.Height = 21;
- // currTotalOrder
- Ice.Lib.Framework.EpiCurrencyConver local59 = ((Ice.Lib.Framework.EpiCurrencyConver)(personalizeCustomizeManager.ControlsHT["c7457526-103e-4f8a-a194-c08416968354"]));
- local59.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
- local59.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local59.Width = 140;
- local59.Height = 21;
- // currTotalDiscount
- Ice.Lib.Framework.EpiCurrencyConver local60 = ((Ice.Lib.Framework.EpiCurrencyConver)(personalizeCustomizeManager.ControlsHT["d5fdc384-6237-4e89-8a4a-7a5ce57ba39f"]));
- local60.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
- local60.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local60.Width = 80;
- local60.Height = 21;
- local60.Visible = false;
- // lblTotalDiscount
- Ice.Lib.Framework.EpiLabel local61 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["05f95d1e-1461-4cc3-bd7f-c7389beaa698"]));
- local61.Top = 39;
- local61.Left = 1;
- local61.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local61.Width = 96;
- local61.Height = 20;
- local61.Visible = false;
- // numTotalDiscount
- Ice.Lib.Framework.EpiNumericEditor local62 = ((Ice.Lib.Framework.EpiNumericEditor)(personalizeCustomizeManager.ControlsHT["7e987bef-a0a9-48d6-ab46-4854be02a595"]));
- local62.Top = 39;
- local62.Left = 103;
- local62.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local62.Width = 39;
- local62.Visible = false;
- local62.Nullable = true;
- // lblPercentage
- Ice.Lib.Framework.EpiLabel local63 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["c16f33b9-c010-4694-9253-f115cbc793f9"]));
- local63.Top = 39;
- local63.Left = 135;
- local63.Visible = false;
- // lblReadyToCalc
- local10.Top = 1;
- local10.Left = 200;
- local10.Width = 145;
- local10.Height = 20;
- // chkReadyToCalc
- // grpShipTo
- Ice.Lib.Framework.EpiGroupBox local64 = ((Ice.Lib.Framework.EpiGroupBox)(personalizeCustomizeManager.ControlsHT["623033c5-a5c0-4b24-bdc6-362470a0ac41"]));
- // lblShipToAddr
- Ice.Lib.Framework.EpiLabel local65 = ((Ice.Lib.Framework.EpiLabel)(personalizeCustomizeManager.ControlsHT["a724efda-a8b9-4708-be55-d904c914504c"]));
- local65.Top = 63;
- local65.Left = 48;
- local65.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left);
- local65.Width = 64;
- local65.Height = 20;
- // Finishing control initialization.
- topControl.FindForm().ResumeLayout();
- }
- public void DestroyGlobalVariables()
- {
- this.epiLabelC1 = null;
- this.epiLabelC1_e3a135f9_5a5d_4acc_bdfa_903304760694 = null;
- this.epiLabelC2 = null;
- this.epiLabelC2_0ea5aad9_e947_423b_8fdc_9354006db4ff = null;
- this.epiLabel1 = null;
- this.epiLabel1_cff20c3e_2165_403f_9df6_10ecb182ecf3 = null;
- this.epiTextBoxC1 = null;
- this.epiTextBoxC1_d7452973_f266_4fb1_9f50_86176582bf24 = null;
- this.epiTextBoxC2 = null;
- this.epiTextBoxC2_176cff2f_225a_4610_94ef_000a2864cda0 = null;
- this.epiTextBoxC3 = null;
- this.epiTextBoxC3_99151df7_883c_4c1c_b485_d883b5081423 = null;
- this.epiGroupBoxC1 = null;
- this.epiGroupBoxC1_861c7222_896e_4323_89fa_dd2fc20e089d = null;
- this.empBasicComboC1 = null;
- this.empBasicComboC1_ac1ee53e_0b23_47f6_9769_6095c17c2044 = null;
- this.epiLabelC3 = null;
- this.epiLabelC3_99a98a01_c3ac_4fb5_8cea_fadec62a48d3 = null;
- this.btnSelectContact = null;
- this.btnSelectContact_083f1035_9ee3_4f28_a49b_e649a4b1ef07 = null;
- this.epiNumericEditorC1 = null;
- this.epiNumericEditorC1_ca7ed2c7_7441_4b16_993a_3e759df6558f = null;
- this.cmvPerConName = null;
- this.cmvPerConName_75b07942_9780_420a_9470_9f5d3b854bc1 = null;
- this.epiLabelC4 = null;
- this.epiLabelC4_0ba376e5_5be4_4241_9e59_ff6a202943c8 = null;
- this.cmbContactDOB = null;
- this.cmbContactDOB_15183d62_19c7_4a21_89fc_041569bddd1d = null;
- this.epiGroupBoxC2 = null;
- this.epiGroupBoxC2_d46d8466_975c_47d9_afd6_a3d209400a9c = null;
- this.epiLabelC5 = null;
- this.epiLabelC5_865e5065_22b0_400c_b0a4_aac02471dba6 = null;
- this.txtFirstName = null;
- this.txtFirstName_2be92edc_ff56_4b31_a15a_46e25fe59ed4 = null;
- this.epiLabelC6 = null;
- this.epiLabelC6_c8d16e2d_2cac_4ac8_899c_b51966821ec2 = null;
- this.epiLabelC7 = null;
- this.epiLabelC7_04b8564e_4197_41c2_906d_011c9b81350e = null;
- this.epiDateTimeEditorC1 = null;
- this.epiDateTimeEditorC1_d2a94790_bb2c_42df_a5a1_8e7a967e5e89 = null;
- this.btnCreateNewContact = null;
- this.btnCreateNewContact_78a10f50_af7a_44ef_9078_bc8a81137437 = null;
- this.epiTextBoxC4 = null;
- this.epiTextBoxC4_f14878e2_0e8d_403d_bd68_c354cfad6c54 = null;
- this.epiLabelC8 = null;
- this.epiLabelC8_b3ffbad4_d2a9_4122_b9a7_a6836107d70b = null;
- this.cmbEmployeeNum = null;
- this.cmbEmployeeNum_5dda1115_e352_4546_92de_bad715e5ea32 = null;
- this.epiLabelC1aa = null;
- this.epiLabelC1aa_93eb9282_d276_46dc_919c_83178d357010 = null;
- this.txtEmpNum = null;
- this.txtEmpNum_2332ab42_e00b_4339_960b_da0a8d8c6bec = null;
- this.Sheet1 = null;
- this.Sheet1_adbc0ab4_b441_46d9_ae92_b32960a53d07 = null;
- this.Sheet2 = null;
- this.Sheet2_7f5c5a31_d34c_412b_993d_8866b44f278b = null;
- this.Sheet3 = null;
- this.Sheet3_eaab0101_2d15_4678_921f_525edb65bf89 = null;
- this.grdDtlList = null;
- this.grdDtlList_71fd4fbb_38d8_4207_9712_0d8022341a17 = null;
- this.epiGroupBoxC3 = null;
- this.epiGroupBoxC3_cc88c880_a173_4547_bcc4_dc99c2a5aa86 = null;
- this.epiLabelC9 = null;
- this.epiLabelC9_2b32ec55_7087_4c0d_98a5_6dc5e01697f5 = null;
- this.epiLabelC10 = null;
- this.epiLabelC10_edfe3fa7_3d56_4630_a12e_5106ae6b95cf = null;
- this.cmbSearchType = null;
- this.cmbSearchType_d8a0cba0_fd0f_4655_b18e_6bc972dbe676 = null;
- this.epiLabelC11 = null;
- this.epiLabelC11_47617eef_27d0_44e7_bd5d_db99aaf795ce = null;
- this.epiTextBoxC5 = null;
- this.epiTextBoxC5_7fe56970_1ebf_4709_bb41_4ce0005dd485 = null;
- this.epiLabelC12 = null;
- this.epiLabelC12_a4c9459a_23f7_400a_80ac_d1ea51010626 = null;
- this.epiTextBoxC6 = null;
- this.epiTextBoxC6_96805b1c_337a_4eb5_b5cc_c08569d9ff7a = null;
- this.epiLabelC1comp = null;
- this.epiLabelC1comp_c32e2c43_2eda_4200_a86a_b7a364ae5070 = null;
- this.txtCorpName = null;
- this.txtCorpName_70602aa3_216f_4b49_bc86_f28916a00838 = null;
- this.epiLabelC13co = null;
- this.epiLabelC13co_a4790422_9982_4dc1_b067_ce54e766c1ca = null;
- this.epiTextBoxC7co = null;
- this.epiTextBoxC7co_b83d2486_c5a9_43c8_803b_8888683e7ee8 = null;
- this.epiGroupBoxC4 = null;
- this.epiGroupBoxC4_7f0f2080_5d48_4965_b198_b5abd21808ad = null;
- this.txtCustomerComments = null;
- this.txtCustomerComments_6f8f35a4_951a_4321_b607_409fdf473674 = null;
- this.baqComboC1 = null;
- this.baqComboC1_dbb6f21e_c202_4481_aecf_ec708f1c5cfc = null;
- this.btnRefreshContact = null;
- this.btnRefreshContact_e04e7880_2ecf_4f63_8982_39f691360c87 = null;
- this.txtCustomerPONum = null;
- this.txtCustomerPONum_687a17ed_1050_44f3_9aac_ae9c910aab0c = null;
- this.lblCustomerPONum = null;
- this.lblCustomerPONum_cfb06a0e_5891_4251_b9e6_6d73c38575bc = null;
- this.txtQuery = null;
- this.txtQuery_ff235923_b42a_41db_8183_05600a8a5e79 = null;
- this.epiGroupBoxC5 = null;
- this.epiGroupBoxC5_9b0aa4db_799b_4a8a_af54_f294666dfd04 = null;
- this.epiLabelC14 = null;
- this.epiLabelC14_cd4d20fa_be1f_426e_958d_425ac53e7084 = null;
- this.cmbHeaderPriceList = null;
- this.cmbHeaderPriceList_0efb8c61_d74c_46de_94f7_a33195f3a038 = null;
- this.epiTextBoxC7 = null;
- this.epiTextBoxC7_8361b0ff_09a4_4566_9a1d_1f895ae3d87e = null;
- this.txtCarrierAcctNo = null;
- this.txtCarrierAcctNo_6247443d_220c_4d04_a078_5769c79aafcf = null;
- this.epiLabelSalesRepCode1 = null;
- this.epiLabelSalesRepCode1_9db1e8fe_4bec_4711_9ddd_a5d404e5ce49 = null;
- this.epiTextBoxSalesRepCode1 = null;
- this.epiTextBoxSalesRepCode1_921c33db_2c1a_441f_8767_e80bffdfadde = null;
- this.lblReceivedDate = null;
- this.lblReceivedDate_d2bbe9d8_5c71_4e15_8185_b34234d2ff45 = null;
- this.epiDateTimeEditorC2 = null;
- this.epiDateTimeEditorC2_7e27ea24_2dcf_4418_b394_c35b9a76bd7b = null;
- this.lblFitTech = null;
- this.lblFitTech_56fbc65b_0811_403b_be99_f2d2b6901306 = null;
- this.cboFitTech = null;
- this.cboFitTech_57525ffd_72f8_4949_90b1_8b0fb4aaa065 = null;
- this.csm = null;
- this.oTrans = null;
- this.SalesOrderForm = null;
- this.baseToolbarsManager = null;
- this.OrderRel_Column = null;
- this.OrderRelTree_Row = null;
- this.OrderMsc_Column = null;
- this.OrderMsc_Row = null;
- this.QuoteDtlAttch_Column = null;
- this.AutoAttachQuoteDtl_Row = null;
- this.QuoteHedList_Column = null;
- this.QuoteHedList_Row = null;
- this.OrderHed_Column = null;
- this.OrderHed_Row = null;
- this.BookDtl_Column = null;
- this.BookDtl_Row = null;
- this.SerialNumberSearch_Column = null;
- this.SNS_Row = null;
- this.SaveOTSParams_Column = null;
- this.SaveOTS_Row = null;
- this.OrderHedList_Column = null;
- this.OrderHedList_Row = null;
- this.BpmData_Column = null;
- this.CallContextBpmData_Row = null;
- this.ccTable_Column = null;
- this.CreditTran2_Row = null;
- this.SalesKitPartInfo_Column = null;
- this.KitPartInfo_Row = null;
- this.OrderRel_Row = null;
- this.OrderDtlAttch_Column = null;
- this.AutoAttachOrderDtl_Row = null;
- this.AutoAttachSalesKits_Row = null;
- this.QuoteDtl_Column = null;
- this.QuoteDtl_Row = null;
- this.TaxConnectStatus_Column = null;
- this.TaxConnectStatus_Row = null;
- this.OrderRelTax_Column = null;
- this.OrdRelTax_Row = null;
- this._Column = null;
- this.NoBoundField_Row = null;
- this.OrderDtl_Column = null;
- this.SalesKits_Row = null;
- this.OHOrderMsc_Column = null;
- this.OHOrderMsc_Row = null;
- this.Client_Column = null;
- this.CallContextClientData_Row = null;
- this.OrderDtlTree_Row = null;
- this.OrderHedUPS_Column = null;
- this.OrderHedUPS_Row = null;
- this.OrderDtl_Row = null;
- this.OrderRepComm_Column = null;
- this.OrderRepComm_Row = null;
- this.CreditTran_Column = null;
- this.CreditTran_Row = null;
- this.CopyNew_Row = null;
- this.HedTaxSum_Column = null;
- this.HedTaxSum_Row = null;
- this.JobProd_Column = null;
- this.JobProd_Row = null;
- this.OrderSched_Column = null;
- this.OrderSched_Row = null;
- this.QuoteQty_Column = null;
- this.QuoteQty_Row = null;
- this.PartSubs_Column = null;
- this.AlternatePart_Row = null;
- this.AutoAttachOrderDtlTree_Row = null;
- this.OrderHedAttch_Column = null;
- this.AutoAttachOrderHed_Row = null;
- this.QuoteHedAttch_Column = null;
- this.AutoAttachQuoteHed_Row = null;
- this.QuoteHed_Column = null;
- this.QuoteHed_Row = null;
- }
- public static string[] GetTranslatableStrings()
- {
- return new string[] {
- "Cast:",
- "Left Mould:",
- "Right Mould:",
- "",
- "Contacts",
- "Employee:",
- "Person / Contact...",
- "DOB:",
- "New Contact",
- "First Name:",
- "Last Name:",
- "Create Contact and Select",
- "Employee Num:",
- "Emp Num:",
- "Order Line Entry",
- "List",
- "Detail",
- "Manufacture Site",
- "Site:",
- "Contact Search Type:",
- "Opportunity #:",
- "Company:",
- "Customer Comments",
- "Refresh Contact",
- "PEUS Cust PO:",
- "****",
- "Override PriceList",
- "Set Price List on All Rows:",
- "epiTextBoxC7",
- "Sales Rep:",
- "Received Date:",
- "Fit Tech:",
- "Sales Order Entry",
- "Apply Order Based Discounts Auto:",
- "CarrierAcctNo"};
- }
- public static string GetStringByID(string id)
- {
- return "";
- }
- //6.4 Add White Diamond and Pink Glitter as colors
- //6.3 - Changing 10103R/N colors and filters to match 10008N/R
- //6.2 - PO Required work
- // 6.1 - Shrunk Summary fields on main page
- // 6.0 - Ensuring all MessageBox.Show give verbose Messages
- // 5.9 - moved FitTech box and label Drop
- // - If partnum changes, verify that the selected colour and filters are valid. If not, clear the value and notify the user.
- // - PEU PO Num changed label to PEUS and make it disappear unless company = 200 and customer = 250
- // _OrderEntry_5.8 - Fixing Person Contact Update not refreshing properly
- // ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
- // Begin Wizard Added Module Level Variables **
- private EpiDataView edvOrderDtl;
- private EpiBaseAdapter oTrans_ordAdapter;
- private EpiDataView edvOrderRel;
- private EpiDataView edvOrderHed;
- // End Wizard Added Module Level Variables **
- private System.Collections.Hashtable m_hashCopyColumns;
- // Add Custom Module Level Variables Here **
- private DataTable m_dtDropDownTable;
- private bool m_copying;
- private ContactSearch m_ContactSearch;
- private ContactSearch m_CastSearch;
- private DataTable m_dtSalesUM;
- private string m_custID;
- private int m_custNum;
- private string m_version;
- private string m_shipToNum;
- private string m_targetCompany;
- private string m_sysConfigFile;
- private string m_userName;
- private string m_passWord;
- private Ice.Core.Session m_targetSession;
- public void InitializeCustomCode()
- {
- // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
- // Begin Wizard Added Variable Initialization
- this.edvOrderDtl = ((EpiDataView)(this.oTrans.EpiDataViews["OrderDtl"]));
- this.edvOrderDtl.EpiViewNotification += new EpiViewNotification(this.edvOrderDtl_EpiViewNotification);
- this.OrderDtl_Column.ColumnChanged += new DataColumnChangeEventHandler(this.OrderDtl_AfterFieldChange);
- this.OrderDtl_Column.ColumnChanging += new DataColumnChangeEventHandler(this.OrderDtl_BeforeFieldChange);
- this.oTrans_ordAdapter = ((EpiBaseAdapter)(this.csm.TransAdaptersHT["oTrans_ordAdapter"]));
- this.oTrans_ordAdapter.BeforeAdapterMethod += new BeforeAdapterMethod(this.oTrans_ordAdapter_BeforeAdapterMethod);
- this.OrderHed_Column.ColumnChanged += new DataColumnChangeEventHandler(this.OrderHed_AfterFieldChange);
- this.edvOrderRel = ((EpiDataView)(this.oTrans.EpiDataViews["OrderRel"]));
- this.edvOrderRel.EpiViewNotification += new EpiViewNotification(this.edvOrderRel_EpiViewNotification);
- this.OrderHed_Column.ColumnChanging += new DataColumnChangeEventHandler(this.OrderHed_BeforeFieldChange);
- this.edvOrderHed = ((EpiDataView)(this.oTrans.EpiDataViews["OrderHed"]));
- this.edvOrderHed.EpiViewNotification += new EpiViewNotification(this.edvOrderHed_EpiViewNotification);
- this.oTrans_ordAdapter.AfterAdapterMethod += new AfterAdapterMethod(this.oTrans_ordAdapter_AfterAdapterMethod);
- // End Wizard Added Variable Initialization
- m_custID = "";
- m_version = "6.4";
- // Begin Wizard Added Custom Method Calls
- this.btnSelectContact.Click += new System.EventHandler(this.btnSelectContact_Click);
- this.btnCreateNewContact.Click += new System.EventHandler(this.btnCreateNewContact_Click);
- SetExtendedProperties();
- this.epiNumericEditorC1.Leave += new System.EventHandler(this.epiNumericEditorC1_Leave);
- this.grdDtlList.BeforeRowInsert += new Infragistics.Win.UltraWinGrid.BeforeRowInsertEventHandler(this.grdDtlList_BeforeRowInsert);
- this.grdDtlList.ClickCellButton += new Infragistics.Win.UltraWinGrid.CellEventHandler(this.grdDtlList_ClickCellButton);
- this.grdDtlList.CellChange += new Infragistics.Win.UltraWinGrid.CellEventHandler(this.grdDtlList_CellChange);
- this.grdDtlList.BeforeCellListDropDown += new Infragistics.Win.UltraWinGrid.CancelableCellEventHandler(this.grdDtlList_BeforeCellListDropDown);
- this.cmbSearchType.ValueChanged += new System.EventHandler(this.cmbSearchType_ValueChanged);
- this.btnRefreshContact.Click += new System.EventHandler(this.btnRefreshContact_Click);
- // End Wizard Added Custom Method Calls
- m_copying = false;
- m_custNum = 0;
- m_shipToNum = "";
- m_targetCompany = "200";
- //ENV
- //m_sysConfigFile = @"\\cpe-erp\ERP10.1.600.0Deployment\Client\Config\erp1016production.sysconfig";
- m_sysConfigFile = @"\\cpe-erp\ERP10.1.600.0Deployment\Client\Config\erp1016crp.sysconfig";
- m_userName = "CANADAONLY";
- m_passWord = "Epicor";
- m_targetSession = null;
- m_targetSession = new Ice.Core.Session(m_userName, m_passWord, Ice.Core.Session.LicenseType.EnterpriseProcessing, m_sysConfigFile);
- }
- public void DestroyCustomCode()
- {
- // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
- // Begin Wizard Added Object Disposal
- this.btnSelectContact.Click -= new System.EventHandler(this.btnSelectContact_Click);
- this.btnCreateNewContact.Click -= new System.EventHandler(this.btnCreateNewContact_Click);
- this.edvOrderDtl.EpiViewNotification -= new EpiViewNotification(this.edvOrderDtl_EpiViewNotification);
- this.edvOrderDtl = null;
- this.OrderDtl_Column.ColumnChanged -= new DataColumnChangeEventHandler(this.OrderDtl_AfterFieldChange);
- this.epiNumericEditorC1.Leave -= new System.EventHandler(this.epiNumericEditorC1_Leave);
- this.OrderDtl_Column.ColumnChanging -= new DataColumnChangeEventHandler(this.OrderDtl_BeforeFieldChange);
- this.grdDtlList.BeforeRowInsert -= new Infragistics.Win.UltraWinGrid.BeforeRowInsertEventHandler(this.grdDtlList_BeforeRowInsert);
- this.oTrans_ordAdapter.BeforeAdapterMethod -= new BeforeAdapterMethod(this.oTrans_ordAdapter_BeforeAdapterMethod);
- this.oTrans_ordAdapter = null;
- this.grdDtlList.ClickCellButton -= new Infragistics.Win.UltraWinGrid.CellEventHandler(this.grdDtlList_ClickCellButton);
- this.grdDtlList.CellChange -= new Infragistics.Win.UltraWinGrid.CellEventHandler(this.grdDtlList_CellChange);
- this.grdDtlList.BeforeCellListDropDown -= new Infragistics.Win.UltraWinGrid.CancelableCellEventHandler(this.grdDtlList_BeforeCellListDropDown);
- this.OrderHed_Column.ColumnChanged -= new DataColumnChangeEventHandler(this.OrderHed_AfterFieldChange);
- this.edvOrderRel.EpiViewNotification -= new EpiViewNotification(this.edvOrderRel_EpiViewNotification);
- this.edvOrderRel = null;
- this.OrderHed_Column.ColumnChanging -= new DataColumnChangeEventHandler(this.OrderHed_BeforeFieldChange);
- this.cmbSearchType.ValueChanged -= new System.EventHandler(this.cmbSearchType_ValueChanged);
- this.edvOrderHed.EpiViewNotification -= new EpiViewNotification(this.edvOrderHed_EpiViewNotification);
- this.edvOrderHed = null;
- this.oTrans_ordAdapter.AfterAdapterMethod -= new AfterAdapterMethod(this.oTrans_ordAdapter_AfterAdapterMethod);
- this.btnRefreshContact.Click -= new System.EventHandler(this.btnRefreshContact_Click);
- // End Wizard Added Object Disposal
- // Begin Custom Code Disposal
- new Thread(() =>
- {
- Thread.CurrentThread.IsBackground = true;
- /* run your code here */
- Thread.Sleep(3000);
- if ( m_targetSession != null )
- {
- m_targetSession.Dispose();
- m_targetSession = null;
- }
- }).Start();
- // End Custom Code Disposal
- }
- private void btnSelectContact_Click(object sender, System.EventArgs args)
- {
- //MessageBox.Show("btnSelectContact_Click");
- string select = " select PerConID as PerConID, FirstName, LastName, DOB_c as DOB, EmployeeNum_c as EmployeeNum, CorpName as Company, Comment," +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " '1' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " '3' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " '5' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " '7' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " '9' " +
- " else " +
- " '' " +
- " end as RightMould, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " '2' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " '4' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " '6' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " '8' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " '10' " +
- " else " +
- " '' " +
- " end as LeftMould, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " plo.lotnum + '1-2' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " plo.lotnum + '3-4' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " plo.lotnum + '5-6' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " plo.lotnum + '7-8' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " plo.lotnum + '9-10' " +
- " else " +
- " '' " +
- " end as SerialNo" +
- " , case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " plo.PerCon_1_2_Notes_c " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " plo.PerCon_3_4_Notes_c " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " plo.PerCon_5_6_Notes_c " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " plo.PerCon_7_8_Notes_c " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " plo.PerCon_9_10_Notes_c " +
- " else " +
- " '' " +
- " end " +
- " as Notes, " +
- " plo.ExpirationDate as ExpirationDate, " +
- " plo.lotnum as ExistingCast " +
- " from dbo.percon with (nolock) " +
- " left outer join dbo.partlot as plo on plo.company = dbo.percon.company and plo.ExpirationDate > GetDate() and ( plo.percon_1_2_c = PerConID or plo.percon_3_4_c = PerConID or plo.percon_5_6_c = PerConID or plo.percon_7_8_c = PerConID or plo.percon_9_10_c = PerConID) " +
- " where dbo.percon.company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' order by dbo.percon.perconid, ExistingCast ";
- if ( ((Ice.Core.Session)oTrans.Session).CompanyID != "200" )
- {
- select = " select pc.PerConID as PerConID, pc.FirstName, pc.LastName, pc.DOB_c as DOB, pc.EmployeeNum_c as EmployeeNum, pc.Comment, pc.CorpName as Company, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " '1' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " '3' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " '5' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " '7' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " '9' " +
- " else " +
- " '' " +
- " end as RightMould, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " '2' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " '4' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " '6' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " '8' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " '10' " +
- " else " +
- " '' " +
- " end as LeftMould, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " pl.lotnum + '1-2' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " pl.lotnum + '3-4' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " pl.lotnum + '5-6' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " pl.lotnum + '7-8' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " pl.lotnum + '9-10' " +
- " else " +
- " '' " +
- " end as SerialNo, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " pl.PerCon_1_2_Notes_c " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " pl.PerCon_3_4_Notes_c " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " pl.PerCon_5_6_Notes_c " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " pl.PerCon_7_8_Notes_c " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " pl.PerCon_9_10_Notes_c " +
- " else " +
- " '' " +
- " end as Notes , " +
- " pl.ExpirationDate as ExpirationDate, " +
- " pl.lotnum as ExistingCast " +
- " from dbo.percon as pc with (nolock) " +
- " join erp.glbpercon as gpc on '200' = gpc.company and gpc.GlbCompany = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and gpc.glbperconid = pc.perconid " +
- " left outer join dbo.PartLot as pl with (nolock)on pl.company = gpc.company and ( pl.percon_1_2_c = gpc.PerConID or " +
- " pl.percon_3_4_c = gpc.PerConID or pl.percon_5_6_c = gpc.PerConID or pl.percon_7_8_c = gpc.PerConID or pl.percon_9_10_c = gpc.PerConID) " +
- " where pc.company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' order by pc.perconid, pl.lotnum";
- }
- //MessageBox.Show("262");
- txtQuery.Text += "262***********************************************262\n\n" + select;
- LaunchSearch(select);
- }
- private void btnCreateNewContact_Click(object sender, System.EventArgs args)
- {
- if ( CheckContactExists(txtFirstName.Text.Trim(), epiTextBoxC4.Text.Trim(), epiDateTimeEditorC1.Value, Convert.ToInt32(edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["CustNum"])) == false )
- {
- CreateNewContact(txtFirstName.Text.Trim(), epiTextBoxC4.Text.Trim(), epiDateTimeEditorC1.Value, txtEmpNum.Text, Convert.ToString(edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["CustomerName"]), Convert.ToInt32(edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["CustNum"]) );
- }
- else
- {
- txtFirstName.Text = "";
- epiTextBoxC4.Text = "";
- epiDateTimeEditorC1.Value = null;
- }
- }
- private bool CheckContactExists(string FirstName, string LastName, object dboValue, int custNum)
- {
- bool useExistingContact = false;
- try
- {
- DateTime dob = new DateTime(1900,01,01);
- try
- {
- dob = Convert.ToDateTime(dboValue);
- }catch{}
- string filter = "firstname = '" + FirstName + "' and lastname = '" + LastName + "' and DOB_c = '" + dob.ToString("yyyy-MM-dd") + "'";
- bool recSelected;
- DataSet ds = SearchFunctions.listLookup(oTrans,"PerConAdapter", out recSelected, false, filter, true);
- if ( recSelected )
- {
- DataSet dsBO = BOReaderData("PerCon", "PerConID = " + ds.Tables[0].Rows[0]["PerConID"].ToString(), "EmployeeNum_c");
- string empNum = "";
- if ( dsBO.Tables[0].Rows.Count > 0 )
- {
- empNum = dsBO.Tables[0].Rows[0]["EmployeeNum_c"].ToString();
- }
- //MessageBox.Show("168: Contact Exists where FirstName, LastName and DOB match.\nOn the next dialog box click search and select an existing contact or cancel out of it to create a new contact entry.");
- if ( ds.Tables[0].Rows.Count == 1 )
- {
- useExistingContact = true;
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() != ds.Tables[0].Rows[0]["PerConID"].ToString() )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"] = ds.Tables[0].Rows[0]["PerConID"];
- }
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["EmployeeNum_c"].ToString() != empNum.ToString() )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["EmployeeNum_c"] = empNum;//ds.Tables[0].Rows[0]["EmployeeNum_c"];
- }
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConCorpName_c"].ToString() != ds.Tables[0].Rows[0]["CorpName"].ToString() )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConCorpName_c"] = ds.Tables[0].Rows[0]["CorpName"];
- }
- }
- else
- {
- //ds = SearchFunctions.listLookup(oTrans,"PerConAdapter", out recSelected, true, filter);
- ds = SearchFunctions.listLookup(oTrans,"PerConAdapter", out recSelected, false, filter);
- if ( recSelected )
- {
- useExistingContact = true;
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() != ds.Tables[0].Rows[0]["PerConID"].ToString())
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"] = ds.Tables[0].Rows[0]["PerConID"];
- }
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["EmployeeNum_c"].ToString() != empNum.ToString() )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["EmployeeNum_c"] = empNum;//ds.Tables[0].Rows[0]["EmployeeNum_c"];
- }
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConCorpName_c"].ToString() != ds.Tables[0].Rows[0]["CorpName"].ToString() )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConCorpName_c"] = ds.Tables[0].Rows[0]["CorpName"];
- }
- }
- }
- }
- }catch ( Exception ex )
- {
- MessageBox.Show("Check Contact Exists: " + ex.Message);
- }
- return useExistingContact;
- }
- private void CreateNewContact(string firstName, string lastName, object dboValue, string empNum, string company, int custNum)
- {
- try
- {
- Erp.Proxy.BO.PerConImpl boPerCon = null;
- boPerCon = Ice.Lib.Framework.WCFServiceSupport.CreateImpl<Erp.Proxy.BO.PerConImpl>((Ice.Core.Session)oTrans.Session, "erp/bo/percon.svc");
- Erp.BO.PerConDataSet dsPerCon = new Erp.BO.PerConDataSet();
- boPerCon.GetNewPerCon(dsPerCon);
- dsPerCon.Tables["PerCon"].Rows[0]["FirstName"] = firstName;
- dsPerCon.Tables["PerCon"].Rows[0]["LastName"] = lastName;
- dsPerCon.Tables["PerCon"].Rows[0]["Name"] = firstName + " " + lastName;
- dsPerCon.Tables["PerCon"].Rows[0]["EmployeeNum_c"] = empNum;
- dsPerCon.Tables["PerCon"].Rows[0]["CorpName"] = company;
- dsPerCon.Tables["PerCon"].Rows[0]["Company_c"] = company;
- if ( edvOrderDtl.Row > -1 )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConCorpName_c"] = company;
- }
- if ( dboValue == System.DBNull.Value )
- {
- dsPerCon.Tables["PerCon"].Rows[0]["DOB_c"] = new DateTime(1900,01,01);
- }
- else
- {
- dsPerCon.Tables["PerCon"].Rows[0]["DOB_c"] = dboValue;
- }
- boPerCon.Update(dsPerCon);
- // if US company make the Person global
- Ice.Core.Session session = (Ice.Core.Session)oTrans.Session;
- if ( session.CompanyID == "250" )
- {
- dsPerCon.Tables["PerCon"].Rows[0]["RowMod"] = "U";
- dsPerCon.Tables["PerCon"].Rows[0]["GlobalPerCon"] = true;
- boPerCon.Update(dsPerCon);
- CreateLinkContact(session.CompanyID, Convert.ToInt32(dsPerCon.Tables["PerCon"].Rows[0]["PerConID"]), m_targetCompany, ref dsPerCon);
- }
- //add to customer
- Erp.Proxy.BO.CustCntImpl boCustCnt = null;
- boCustCnt = Ice.Lib.Framework.WCFServiceSupport.CreateImpl<Erp.Proxy.BO.CustCntImpl>((Ice.Core.Session)oTrans.Session, "erp/bo/custcnt.svc");
- Erp.BO.CustCntDataSet dsCustCnt = new Erp.BO.CustCntDataSet();
- boCustCnt.GetNewCustCnt(dsCustCnt, custNum,"");
- boCustCnt.GetPerConData(Convert.ToInt32(dsPerCon.Tables["PerCon"].Rows[0]["PerConID"]),dsCustCnt);
- boCustCnt.Update(dsCustCnt);
- /*DataRow newRow = m_dtDropDownTable.NewRow();
- newRow["PerConID"] = dsPerCon.Tables["PerCon"].Rows[0]["PerConID"];
- newRow["Name"] = dsPerCon.Tables["PerCon"].Rows[0]["Name"];
- newRow["DOB_c"] = dsPerCon.Tables["PerCon"].Rows[0]["DOB_c"];
- newRow["EmployeeNum_c"] = dsPerCon.Tables["PerCon"].Rows[0]["EmployeeNum_c"];
- m_dtDropDownTable.Rows.Add(newRow);
- */
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"] = dsPerCon.Tables["PerCon"].Rows[0]["PerConID"];
- boPerCon.Dispose();
- boPerCon = null;
- dsPerCon.Clear();
- dsPerCon = null;
- boCustCnt.Dispose();
- boCustCnt = null;
- dsCustCnt.Clear();
- dsCustCnt = null;
- txtFirstName.Text = "";
- epiTextBoxC4.Text = "";
- epiDateTimeEditorC1.Value = null;
- }catch ( Exception ex )
- {
- MessageBox.Show("CreateNewContact Error: " + ex.Message);
- }
- }
- private void CreateLinkContact(string sourceCompany, int sourcePerConID, string targetCompany, ref Erp.BO.PerConDataSet sourcePerCon )
- {
- // MessageBox.Show("Create link");
- System.Collections.Hashtable parameters = null;
- DataTable dtGlbPerConExists = null;
- Erp.Proxy.BO.PerConImpl boPerConImpl = null;
- Erp.BO.GlbPerConDataSet dsGlbPerCon = null;
- int targetPerConID = 0;
- try
- {
- // verify that glbpercon does not exist
- Ice.Core.Session currentSession = (Ice.Core.Session)oTrans.Session;
- parameters = new System.Collections.Hashtable();
- parameters.Add("psourcecompany", sourceCompany);
- parameters.Add("ptargetcompany", targetCompany);
- parameters.Add("psourceperconid", sourcePerConID);
- dtGlbPerConExists = GetQueryData("CPEGlobalContactLink", parameters);
- bool bLinked = false;
- if ( dtGlbPerConExists.Rows.Count > 0 )
- {
- if ( Convert.ToInt32(dtGlbPerConExists.Rows[0]["GlbPerCon_PerConID"]) == 0 )
- {
- bLinked = false;
- }
- else
- {
- bLinked = true;
- // MessageBox.Show("Already linked to " + dtGlbPerConExists.Rows[0]["GlbPerCon_PerConID"].ToString());
- }
- }
- {
- // create row in GlbPerCon table using SQL
- if ( bLinked == false )
- {
- //string theInsert = "insert into erp.glbpercon " +
- // "(company, perconid, GlbCompany, GlbPerConID, GlobalPerCon, name, firstname, middlename, lastname, prname, func,FaxNum,PhoneNum,EMailAddress,CellPhoneNum,PagerNum,HomeNum,AltNum,Prefix,Suffix,Initials,WebSite,IM,Twitter,LinkedIn,FaceBook,WebLink1,WebLink2,WebLink3,WebLink4,WebLink5,Address1,Address2,Address3,City,State,Zip,Country,CountryNum,CorpName,RoleCode,Comment,ContactTitle,ReportsTo,PRLastName,PRFirstName,PRMiddleName ) " +
- // "select '200',0,company, perconid, 1, name,firstname, middlename, lastname, prname, func,FaxNum,PhoneNum,EMailAddress,CellPhoneNum,PagerNum,HomeNum,AltNum,Prefix,Suffix,Initials,WebSite,IM,Twitter,LinkedIn,FaceBook,WebLink1,WebLink2,WebLink3,WebLink4,WebLink5,Address1,Address2,Address3,City,State,Zip,Country,CountryNum,CorpName,RoleCode,Comment,ContactTitle,ReportsTo,PRLastName,PRFirstName,PRMiddleName from erp.percon where company = '" + sourceCompany + "' and perconid = " + sourcePerConID.ToString().Trim();
- //SQLExecuteNonQuery(theInsert);
- //MessageBox.Show("Sql done");
- // create contact ( name only )
- boPerConImpl = Ice.Lib.Framework.WCFServiceSupport.CreateImpl<Erp.Proxy.BO.PerConImpl>(m_targetSession, "erp/bo/PerCon.svc");
- Erp.BO.PerConDataSet dsPerCon = new Erp.BO.PerConDataSet();
- boPerConImpl.GetNewPerCon(dsPerCon);
- dsPerCon.Tables["PerCon"].Rows[0]["Name"] = sourcePerCon.Tables["PerCon"].Rows[0]["Name"];
- boPerConImpl.DefaultName("Detail", 0, dsPerCon);
- boPerConImpl.Update(dsPerCon);
- targetPerConID = Convert.ToInt32(dsPerCon.Tables["PerCon"].Rows[0]["PerConID"]);
- // MessageBox.Show(targetPerConID.ToString() + " id created" + ">>>" + sourceCompany + "`" + sourcePerConID);
- // link the contacts
- bool bFound = false;
- int counter = 0;
- while ( bFound == false && counter < 65 )
- {
- counter++;
- dsGlbPerCon = boPerConImpl.GetGlbPerConList(sourceCompany + "`" + sourcePerConID);
- if ( dsGlbPerCon.Tables["GlbPerCon"].Rows.Count > 0 )
- {
- bFound = true;
- dsGlbPerCon.Tables["GlbPerCon"].Rows[0]["LinkPerConID"] = targetPerConID;
- dsGlbPerCon.Tables["GlbPerCon"].Rows[0]["LinkName"] = sourcePerCon.Tables["PerCon"].Rows[0]["Name"];
- dsGlbPerCon.Tables["GlbPerCon"].Rows[0]["RowMod"] = "U";
- }
- else
- {
- System.Threading.Thread.Sleep(1000);
- }
- }
- // MessageBox.Show(dsGlbPerCon.Tables["GlbPerCon"].Rows.Count.ToString() + "Found it " + counter.ToString());
- //string message;
- //boPerConImpl.PreLinkGlbPerCon(sourceCompany, sourcePerConID, false, dsGlbPerCon, out message);
- // MessageBox.Show("391");
- string[] copyColumns = {"DOB_c","EmployeeNum_c", "name","firstname","middlename","lastname","prname","func","FaxNum","PhoneNum","EMailAddress","CellPhoneNum","PagerNum","HomeNum","AltNum","Prefix","Suffix","Initials","WebSite","IM","Twitter","LinkedIn","FaceBook","WebLink1","WebLink2","WebLink3","WebLink4","WebLink5","Address1","Address2","Address3","City","State","Zip","Country","CountryNum","CorpName","RoleCode","Comment","ContactTitle","ReportsTo","PRLastName","PRFirstName","PRMiddleName"};
- foreach ( string colName in copyColumns )
- {
- dsPerCon.Tables["PerCon"].Rows[0][colName] = sourcePerCon.Tables["PerCon"].Rows[0][colName];
- }
- // MessageBox.Show("397");
- dsPerCon.Tables["PerCon"].Rows[0]["RowMod"] = "U";
- boPerConImpl.LinkGlbPerCon(sourceCompany, sourcePerConID, dsGlbPerCon, dsPerCon);
- dsPerCon.Tables["PerCon"].Rows[0]["GlbFlag"] = true;
- dsPerCon.Tables["PerCon"].Rows[0]["GlbLink"] = sourceCompany + "~" + sourcePerConID;
- dsPerCon.Tables["PerCon"].Rows[0]["RowMod"] = "U";
- boPerConImpl.Update(dsPerCon);
- // MessageBox.Show("linked");
- dsPerCon.Clear();
- dsGlbPerCon.Clear();
- }
- }
- // clean everything up
- }catch ( Exception ex )
- {
- MessageBox.Show("Create Global Contact Link Error: " + ex.Message);
- }
- finally
- {
- if ( boPerConImpl != null )
- {
- boPerConImpl.Dispose();
- boPerConImpl = null;
- }
- if ( parameters != null )
- {
- parameters.Clear();
- parameters = null;
- }
- if ( dtGlbPerConExists != null )
- {
- dtGlbPerConExists.Clear();
- dtGlbPerConExists = null;
- }
- }
- }
- private void UpdateContact(int perCon, string empNum, string company, int custNum)
- {
- try
- {
- Erp.Proxy.BO.PerConImpl boPerCon = null;
- boPerCon = Ice.Lib.Framework.WCFServiceSupport.CreateImpl<Erp.Proxy.BO.PerConImpl>((Ice.Core.Session)oTrans.Session, "erp/bo/percon.svc");
- Erp.BO.PerConDataSet dsPerCon = boPerCon.GetByID(perCon);
- //MessageBox.Show("UpdateContact to: " + perCon.ToString() + " num=" + empNum);
- /*dsPerCon.Tables["PerCon"].Rows[0]["EmployeeNum_c"] = empNum;
- dsPerCon.Tables["PerCon"].Rows[0]["CorpName"] = company;
- dsPerCon.Tables["PerCon"].Rows[0]["Company_c"] = company;
- boPerCon.Update(dsPerCon);
- */
- Erp.Proxy.BO.CustCntImpl boCustCnt = null;
- boCustCnt = Ice.Lib.Framework.WCFServiceSupport.CreateImpl<Erp.Proxy.BO.CustCntImpl>((Ice.Core.Session)oTrans.Session, "erp/bo/custcnt.svc");
- Erp.BO.CustCntDataSet dsCustCnt = new Erp.BO.CustCntDataSet();
- try
- {
- //add to customer
- boCustCnt.GetNewCustCnt(dsCustCnt, custNum,"");
- boCustCnt.GetPerConData(perCon,dsCustCnt);
- boCustCnt.Update(dsCustCnt);
- }catch
- {
- }
- finally
- {
- boCustCnt.Dispose();
- boCustCnt = null;
- dsCustCnt.Clear();
- dsCustCnt = null;
- }
- boPerCon.Dispose();
- boPerCon = null;
- dsPerCon.Clear();
- dsPerCon = null;
- }catch ( Exception ex )
- {
- MessageBox.Show("Update Contact Error: " + ex.Message);
- }
- }
- private DataSet BOReaderData(string businessObject, string filter, string fieldList)
- {
- DataSet ds = new DataSet();
- Ice.Core.Session session = null;
- Ice.Proxy.Lib.BOReaderImpl boReader = null;
- try
- {
- session = (Ice.Core.Session)oTrans.Session;
- boReader = Ice.Lib.Framework.WCFServiceSupport.CreateImpl<Ice.Proxy.Lib.BOReaderImpl>(session, "ice/lib/BOReader.svc");
- ds = boReader.GetRows("Erp:BO:" + businessObject, filter, fieldList);
- }
- catch (Exception ex)
- {
- MessageBox.Show("Populate from BO error: " + ex.Message);
- }
- finally
- {
- if (boReader != null)
- {
- boReader.Dispose();
- }
- }
- return ds;
- }
- /* START - Greg's SQL functions copied from Search Form area below */
- private System.Data.SqlClient.SqlConnection GetSQLConnection()
- {
- try
- {
- System.Data.SqlClient.SqlConnection SQLCon = new System.Data.SqlClient.SqlConnection();
- string timeout = "3000";
- //ENV
- string connectionString = "Persist Security Info=false;Integrated Security=false;database=erp1016CRP;User ID=EpicorViews;password=Ep1c0rViews;server=CPE-ERPSQL;Connect Timeout=" + timeout;
- SQLCon.ConnectionString = connectionString;
- SQLCon.Open();
- return SQLCon;
- }
- catch (Exception ex)
- {
- MessageBox.Show("GetSQLConnection error: " + ex.Message);
- }
- return null;
- }
- private DataTable SQLExecuteSelect(string selectStatement)
- {
- DataTable dt = new DataTable();
- try
- {
- System.Data.SqlClient.SqlConnection SQLCon = GetSQLConnection();
- System.Data.SqlClient.SqlCommand command = new System.Data.SqlClient.SqlCommand(selectStatement, SQLCon);
- command.CommandTimeout = 90;
- System.Data.SqlClient.SqlDataReader reader = command.ExecuteReader();
- dt.Load(reader);
- DisconnectCon(SQLCon);
- // set readonly = false
- foreach (DataColumn col in dt.Columns)
- {
- col.ReadOnly = false;
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show("Select statement error " + ex.Message + "\n\n" + selectStatement);
- }
- return dt;
- }
- private void DisconnectCon(System.Data.SqlClient.SqlConnection SQLCon)
- {
- try
- {
- SQLCon.Close();
- SQLCon = null;
- }
- catch (Exception ex)
- {
- }
- }
- /* END - Greg's SQL functions copied from Search Form area below */
- private void LoadDOBDropDown()
- {
- /*
- try
- {
- cmvPerConName.ReadOnly = true;
- cmbContactDOB.ReadOnly = true;
- cmbEmployeeNum.ReadOnly = true;
- /*
- DataSet ds = BOReaderData("PerCon", "", "PerConID,Name,DOB_c,EmployeeNum_c");
- m_dtDropDownTable = ds.Tables[0];
- cmbContactDOB.DataSource = ds.Tables[0];
- cmbContactDOB.DisplayMember = "DOB_c";
- cmbContactDOB.ValueMember = "PerConID";
- cmvPerConName.DataSource = ds.Tables[0];
- cmvPerConName.DisplayMember = "Name";
- cmvPerConName.ValueMember = "PerConID";
- cmbEmployeeNum.DataSource = ds.Tables[0];
- cmbEmployeeNum.DisplayMember = "EmployeeNum_c";
- cmbEmployeeNum.ValueMember = "PerConID";
- * /
- string query = " SELECT PerConID, Name, EmployeeNum_c, DOB_c FROM ERP.PerCon pc JOIN ERP.PerCon_UD pcud ON pcud.ForeignSysRowID = pc.SysRowID";
- DataTable dt = SQLExecuteSelect(query);
- cmbContactDOB.DataSource = dt;
- cmbContactDOB.DisplayMember = "DOB_c";
- cmbContactDOB.ValueMember = "PerConID";
- cmvPerConName.DataSource = dt;
- cmvPerConName.DisplayMember = "Name";
- cmvPerConName.ValueMember = "PerConID";
- cmbEmployeeNum.DataSource = dt;
- cmbEmployeeNum.DisplayMember = "EmployeeNum_c";
- cmbEmployeeNum.ValueMember = "PerConID";
- }catch ( Exception ex )
- {
- MessageBox.Show("LoadDOBDropDown error: " + ex.Message);
- }
- */
- }
- private void SetHeaderPriceListDropDown(int custNum, string shipToNum)
- {
- try
- {
- System.Collections.Hashtable parameters = new System.Collections.Hashtable();
- parameters.Add("pcustnum", custNum.ToString());
- parameters.Add("pshiptonum", shipToNum);
- //DataTable dt = GetQueryData("CPEPriceLists", parameters);
- DataTable dtCustPriceLst = GetQueryData("CPE_CustomerPriceLists", parameters);
- DataTable dtGrpPriceLst = GetQueryData("CPE_CustGrpPriceLists", parameters);
- foreach ( DataRow grpRow in dtGrpPriceLst.Rows )
- {
- DataRow[] exists = dtCustPriceLst.Select("Calculated_Value = '" + grpRow["Calculated_Value"].ToString() + "'");
- if ( exists.Length <= 0 )
- {
- dtCustPriceLst.ImportRow(grpRow);
- }
- }
- cmbHeaderPriceList.DataSource = dtCustPriceLst;
- cmbHeaderPriceList.DisplayMember = "Calculated_Display";
- cmbHeaderPriceList.ValueMember = "Calculated_Value";
- }catch ( Exception ex )
- {
- MessageBox.Show("SetHeaderPriceList dropdown: " + ex.Message);
- }
- }
- private void SetVersionNumber()
- {
- string custName = oTrans.EpiBaseForm.CustomizationName;
- string version = custName;
- if ( custName.LastIndexOf("_") > 0 )
- {
- version = custName.Substring(custName.LastIndexOf("_") + 1, custName.Length - custName.LastIndexOf("_") - 1);
- }
- SalesOrderForm.Text = SalesOrderForm.Text + " - Version " + m_version;
- }
- private void edvOrderDtl_EpiViewNotification(EpiDataView view, EpiNotifyArgs args)
- {
- // ** Argument Properties and Uses **
- // view.dataView[args.Row]["FieldName"]
- // args.Row, args.Column, args.Sender, args.NotifyType
- // NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes
- try
- {
- if ( edvOrderDtl.Row > -1 )
- {
- btnCreateNewContact.ReadOnly = false;
- btnSelectContact.ReadOnly = false;
- }
- else
- {
- btnCreateNewContact.ReadOnly = true;
- btnSelectContact.ReadOnly = true;
- }
- if ((args.NotifyType == EpiTransaction.NotifyType.AddRow))
- {
- /*if ((args.Row > -1))
- {
- view.dataView[args.Row]["Copy"] = "From Previous";
- view.dataView[args.Row]["New"] = "New Line";
- view.dataView[args.Row]["Search"] = "Search";
- }*/
- view.dataView[args.Row]["SalesUM"] = "PR";
- }
- }catch ( Exception ex )
- {
- //MessageBox.Show("edvOrderDtl error" + ex.Message);
- }
- }
- private void SetExtendedProperties()
- {
- // Begin Wizard Added EpiDataView Initialization
- EpiDataView edvOrderDtl = ((EpiDataView)(this.oTrans.EpiDataViews["OrderDtl"]));
- EpiDataView edvOrderHed = ((EpiDataView)(this.oTrans.EpiDataViews["OrderHed"]));
- // End Wizard Added EpiDataView Initialization
- // Begin Wizard Added Conditional Block
- if (edvOrderDtl.dataView.Table.Columns.Contains("PerConDropDown_c"))
- {
- // Begin Wizard Added ExtendedProperty Settings: edvOrderDtl-PerConDropDown_c
- edvOrderDtl.dataView.Table.Columns["PerConDropDown_c"].ExtendedProperties["ReadOnly"] = true;
- // End Wizard Added ExtendedProperty Settings: edvOrderDtl-PerConDropDown_c
- }
- if (edvOrderDtl.dataView.Table.Columns.Contains("PerConCorpName_c"))
- {
- // Begin Wizard Added ExtendedProperty Settings: edvOrderDtl-PerConCorpName_c
- edvOrderDtl.dataView.Table.Columns["PerConCorpName_c"].ExtendedProperties["ReadOnly"] = true;
- // End Wizard Added ExtendedProperty Settings: edvOrderDtl-PerConCorpName_c
- }
- if (edvOrderHed.dataView.Table.Columns.Contains("CommentsFromCustomer_c"))
- {
- // Begin Wizard Added ExtendedProperty Settings: edvOrderHed-CommentsFromCustomer_c
- edvOrderHed.dataView.Table.Columns["CommentsFromCustomer_c"].ExtendedProperties["ReadOnly"] = true;
- // End Wizard Added ExtendedProperty Settings: edvOrderHed-CommentsFromCustomer_c
- }
- if (edvOrderDtl.dataView.Table.Columns.Contains("EmployeeNum_c"))
- {
- // Begin Wizard Added ExtendedProperty Settings: edvOrderDtl-EmployeeNum_c
- //greg edvOrderDtl.dataView.Table.Columns["EmployeeNum_c"].ExtendedProperties["ReadOnly"] = true;
- // End Wizard Added ExtendedProperty Settings: edvOrderDtl-EmployeeNum_c
- }
- // End Wizard Added Conditional Block
- }
- private bool GetLatestRev(string partNum, string site, out string rev)
- {
- bool hasRev = false;
- rev = "";
- try
- {
- System.Collections.Hashtable parameters = new System.Collections.Hashtable();
- parameters.Add("ppartnum", partNum );
- parameters.Add("psite", site );
- DataTable dt = GetQueryData("CPELatestRevBySite", parameters);
- if ( dt.Rows.Count > 0 )
- {
- rev = dt.Rows[0]["PartRev_RevisionNum"].ToString();
- hasRev = true;
- }
- //MessageBox.Show("334: partnum:" + partNum + " site:" + site + " rev:" + rev);
- }
- catch ( Exception ex )
- {
- MessageBox.Show("GetLastest rev error: " + ex.Message);
- }
- return hasRev;
- }
- private int ChangeItem(bool bShow, int proposedValue, ref EpiDataView edv, string key, string adapter, System.Collections.Hashtable fromToHash)
- {
- int value = proposedValue;
- try
- {
- //if ( bShow )
- {
- bool recSelected;
- string where = "";
- if ( bShow == false )
- {
- where = key + " = " + proposedValue;
- }
- DataSet ds = SearchFunctions.listLookup(oTrans, adapter, out recSelected, bShow, where);
- if ( bShow == false && recSelected == false )
- {
- MessageBox.Show("ChangeItem error: " + key + ": " + proposedValue + " does not exist.");
- value = 0;
- if ( edv.Row > -1 )
- {
- foreach ( System.Collections.DictionaryEntry dic in fromToHash )
- {
- edv.dataView.Table.Rows[edv.Row][dic.Key.ToString()] = 0;
- }
- value = 0;
- }
- }
- else
- {
- if ( edv.Row > -1 )
- {
- foreach ( System.Collections.DictionaryEntry dic in fromToHash )
- {
- if ( key.Trim().ToLower() == dic.ToString().Trim().ToLower() )
- {
- if ( Convert.ToInt32(edv.dataView.Table.Rows[edv.Row][key]) != Convert.ToInt32(ds.Tables[0].Rows[0][dic.Value.ToString()]) )
- {
- edv.dataView.Table.Rows[edv.Row][key] = Convert.ToInt32(ds.Tables[0].Rows[0][dic.Value.ToString()]);
- }
- value = Convert.ToInt32(ds.Tables[0].Rows[0][key]);
- }
- else
- {
- if ( Convert.ToInt32(edv.dataView.Table.Rows[edv.Row][dic.Key.ToString()]) != Convert.ToInt32(ds.Tables[0].Rows[0][dic.Value.ToString()]) )
- {
- edv.dataView.Table.Rows[edv.Row][dic.Key.ToString()] = Convert.ToInt32(ds.Tables[0].Rows[0][dic.Value.ToString()]);
- }
- }
- }
- }
- else
- {
- value = 0;
- }
- }
- }
- }
- catch ( Exception ex )
- {
- MessageBox.Show("Change " + key + " error:" + ex.Message);
- }
- return value;
- }
- private int ChangeContact(bool bShow, int proposedValue)
- {
- System.Collections.Hashtable fromToHash = new System.Collections.Hashtable();
- fromToHash.Add("PerCon_c", "PerConID");
- fromToHash.Add("PerConDropDown_c", "PerConID");
- int perCon = ChangeItem(bShow, proposedValue, ref edvOrderDtl, "PerConID", "PerConAdapter", fromToHash);
- fromToHash.Clear();
- fromToHash = null;
- return perCon;
- }
- private void epiNumericEditorC1_Leave(object sender, System.EventArgs args)
- {
- }
- private void OrderDtl_BeforeFieldChange(object sender, DataColumnChangeEventArgs args)
- {
- // ** Argument Properties and Uses **
- // args.Row["FieldName"]
- // args.Column, args.ProposedValue, args.Row
- // Add Event Handler Code
- //switch (args.Column.ColumnName)
- {
- // MessageBox.Show("802 Before: " + args.Column.ColumnName + " <=" + args.ProposedValue.ToString() + "<");
- }
- }
- private void SalesOrderForm_Load(object sender, EventArgs args)
- {
- txtCustomerComments.Dock = DockStyle.Fill;
- try
- {
- SetHeaderPriceListDropDown(0,"");
- //edvOrderDtl.dataView.Table.Columns.Add(new DataColumn("Copy", System.Type.GetType("System.String")));
- //edvOrderDtl.dataView.Table.Columns.Add(new DataColumn("New", System.Type.GetType("System.String")));
- //edvOrderDtl.dataView.Table.Columns.Add(new DataColumn("Search", System.Type.GetType("System.String")));
- m_hashCopyColumns = new System.Collections.Hashtable();
- string[] columns = {"BoxNumber_c","OpportunityNum_c", "PartNum","SellingQuantity","SalesUM","PerConFirstName_c","PerConLastName_c","PerConDOB_c","PerConID_c","EmployeeNum_c","DocUnitPrice","Colour_c","Filter_c","CPE_MouldRight_c", "CPE_MouldLeft_c","CPE_Cast_c","PerCon_c","PerConCorpName_c"};
- foreach (string column in columns)
- {
- m_hashCopyColumns.Add(column.ToLower(),0);
- }
- m_ContactSearch = new ContactSearch("Person // Contact");
- m_ContactSearch.Icon = SalesOrderForm.Icon;
- m_CastSearch = new ContactSearch("Cast Number");
- m_CastSearch.Icon = SalesOrderForm.Icon;
- }catch ( Exception ex )
- {
- MessageBox.Show("SalesOrderForm_Load1 error: " + ex.Message);
- }
- LoadDOBDropDown();
- SetVersionNumber();
- grdDtlList.Dock = DockStyle.Fill;
- m_dtSalesUM = SetGridDropDown(grdDtlList, "SalesUM", "CPEUOM");
- DataTable dtSearch = new DataTable();
- dtSearch.Columns.Add("Value");
- dtSearch.Columns.Add("Display");
- DataRow newRow = dtSearch.NewRow();
- newRow["Value"] = "Auto3";
- newRow["Display"] = "3 Character Last Name Auto Search";
- dtSearch.Rows.Add(newRow);
- newRow = dtSearch.NewRow();
- newRow["Value"] = "GridButton";
- newRow["Display"] = "Button Click Search";
- dtSearch.Rows.Add(newRow);
- cmbSearchType.DataSource = dtSearch;
- cmbSearchType.ValueMember = "Value";
- cmbSearchType.DisplayMember = "Display";
- cmbSearchType.Value = "GridButton";
- grdDtlList.DisplayLayout.Bands[0].Columns["Search_c"].Hidden = false;
- try
- {
- grdDtlList.DisplayLayout.Bands[0].Columns["Copy_c"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;
- grdDtlList.DisplayLayout.Bands[0].Columns["Copy_c"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;
- grdDtlList.DisplayLayout.Bands[0].Columns["Search_c"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;
- grdDtlList.DisplayLayout.Bands[0].Columns["Search_c"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;
- grdDtlList.DisplayLayout.Bands[0].Columns["New_c"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;
- grdDtlList.DisplayLayout.Bands[0].Columns["New_c"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;
- grdDtlList.DisplayLayout.Bands[0].Columns["CPE_Cast_c"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;
- grdDtlList.DisplayLayout.Bands[0].Columns["CPE_Cast_c"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;
- grdDtlList.DisplayLayout.Bands[0].Override.ButtonStyle = Infragistics.Win.UIElementButtonStyle.Button3D;
- //grdDtlList.DisplayLayout.Bands[0].Columns["Search"].Header.VisiblePosition = 6;
- }catch ( Exception ex )
- {
- MessageBox.Show("SalesOrderForm_Load2 error: " + ex.Message);
- }
- }
- private void grdDtlList_BeforeRowInsert(object sender, Infragistics.Win.UltraWinGrid.BeforeRowInsertEventArgs args)
- {
- // Event handling code generated by wizard.
- args.Cancel = true;
- this.oTrans.SetCurrentEvent(TransactionEvent.AddNewOnNewFromGrid);
- try
- {
- oTrans.GetNewOrderDtl();
- } catch (System.Exception )
- {
- }
- }
- private DataTable GetQueryData(string baqName, System.Collections.Hashtable parameters)
- {
- // ** Place Event Handling Code Here **
- string orgbaqName = baqName;
- Ice.Core.Session session = (Ice.Core.Session)oTrans.Session;
- Ice.BO.DynamicQueryDataSet baqQuery = null;
- Ice.BO.QueryExecutionDataSet executionDS = null;
- string caption = string.Empty;
- Ice.Adapters.DynamicQueryAdapter adDynamicQuery = new Ice.Adapters.DynamicQueryAdapter(oTrans);
- adDynamicQuery.BOConnect();
- try
- {
- adDynamicQuery.ClearDynamicQueryData();
- try
- {
- baqQuery = adDynamicQuery.GetQueryDesignData(baqName) as Ice.BO.DynamicQueryDataSet;
- }
- catch
- {
- baqName = session.CompanyID + "-" + baqName;
- baqQuery = adDynamicQuery.GetQueryDesignData(baqName) as Ice.BO.DynamicQueryDataSet;
- }
- executionDS = adDynamicQuery.GetQueryExecutionParametersByID(baqName);
- if (baqQuery != null && executionDS != null)
- {
- for (int i = 0; i < executionDS.ExecutionParameter.Rows.Count; i++)
- {
- string executeParams = executionDS.ExecutionParameter[i]["ParameterID"].ToString().Trim().ToLower();
- if (parameters.Contains(executeParams))
- {
- executionDS.ExecutionParameter[i]["ParameterValue"] = parameters[executeParams].ToString();
- }
- }
- executionDS.AcceptChanges();
- adDynamicQuery.Execute(baqQuery, executionDS);
- }
- else
- {
- MessageBox.Show("GetQueryData error1: " + baqName + " not found.");
- }
- //return m_adDynamicQuery.QueryResults.Tables[0];
- }
- catch (Exception ex)
- {
- MessageBox.Show("GetQueryData2:Error running BAQ " + orgbaqName + " or " + baqName + ":" + ex.Message);
- }
- DataTable dataTable = adDynamicQuery.QueryResults.Tables[0];//.Copy();
- adDynamicQuery.Dispose();
- adDynamicQuery = null;
- return dataTable;
- }
- private DataTable SetGridDropDown(Infragistics.Win.UltraWinGrid.UltraGrid grid, string columnName, string BAQ)
- {
- DataTable dt = new DataTable();
- try
- {
- grid.DisplayLayout.Bands[0].Columns[columnName].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownValidate;
- Infragistics.Win.ValueList theList = new Infragistics.Win.ValueList();
- System.Collections.Hashtable parameters = new System.Collections.Hashtable();
- // parameters.Add("pcompany", ((Ice.Core.Session)oTrans.Session).CompanyID );
- dt = GetQueryData(BAQ, parameters);
- foreach (DataRow row in dt.Rows )
- theList.ValueListItems.Add(row["Calculated_Display"].ToString(), row["Calculated_Value"].ToString());
- grid.DisplayLayout.Bands[0].Columns[columnName].ValueList = theList;
- }
- catch ( Exception ex )
- {
- MessageBox.Show("Modify Grid error: " + ex.Message);
- }
- return dt;
- }
- private void SetGridDropDown(Infragistics.Win.UltraWinGrid.UltraGrid grid, string columnName, string[] color_array)
- {
- try
- {
- grid.DisplayLayout.Bands[0].Columns[columnName].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownValidate;
- Infragistics.Win.ValueList theList = new Infragistics.Win.ValueList();
- System.Collections.Hashtable parameters = new System.Collections.Hashtable();
- foreach (string color in color_array ) theList.ValueListItems.Add(color);
- grid.DisplayLayout.Bands[0].Columns[columnName].ValueList = theList;
- }
- catch ( Exception ex )
- {
- MessageBox.Show("Modify Grid error: " + ex.Message);
- }
- return;
- }
- private void SetGridDropDown(Infragistics.Win.UltraWinGrid.UltraGrid grid, string columnName, List<string> color_array)
- {
- try
- {
- grid.DisplayLayout.Bands[0].Columns[columnName].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownValidate;
- Infragistics.Win.ValueList theList = new Infragistics.Win.ValueList();
- System.Collections.Hashtable parameters = new System.Collections.Hashtable();
- foreach (string color in color_array ) theList.ValueListItems.Add(color);
- grid.DisplayLayout.Bands[0].Columns[columnName].ValueList = theList;
- }
- catch ( Exception ex )
- {
- MessageBox.Show("Modify Grid error: " + ex.Message);
- }
- return;
- }
- private void oTrans_ordAdapter_BeforeAdapterMethod(object sender, BeforeAdapterMethodArgs args)
- {
- // ** Argument Properties and Uses **
- // ** args.MethodName **
- // ** Add Event Handler Code **
- // ** Use MessageBox to find adapter method name
- // EpiMessageBox.Show(args.MethodName)
- switch (args.MethodName)
- {
- case "Update":
- case "MasterUpdate":
- // MessageBox.Show("MasterUpdate");
- if ( edvOrderDtl.Row > -1 && edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["RowMod"].ToString() == "A" )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["Copy_c"] = "";
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["New_c"] = "";
- //edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["Search"] = "";
- }
- System.Collections.Hashtable parameters = new System.Collections.Hashtable();
- parameters.Add("pcustid", m_custID);
- DataTable dt = GetQueryData("CPECustomerPORequired", parameters);
- if ( dt.Rows.Count > 0 )
- {
- //MessageBox.Show("PO Required is " + dt.Rows[0]["Customer_PORequired_c"]);
- //MessageBox.Show("PO length is: " + edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["PONum"].ToString().Length);
- if (Convert.ToBoolean(dt.Rows[0]["Customer_PORequired_c"]) && (edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["PONum"].ToString().Length == 0))
- {
- MessageBox.Show("Customer requires a PO number");
- args.Cancel = true;
- }
- }
- // DialogResult dialogResult = EpiMessageBox.Show("Cancel Update?", "Cancel", MessageBoxButtons.YesNo);
- // if ((dialogResult == DialogResult.Yes))
- // {
- // args.Cancel = true;
- // } else
- // {
- // DoSomethingElse();
- // }
- break;
- }
- }
- private void grdDtlList_ClickCellButton(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs args)
- {
- if ( args.Cell.Column.Key == "Copy_c" )
- {
- CopyFromPrevious(true);
- }
- else if ( args.Cell.Column.Key == "New_c" )
- {
- CopyFromPrevious(false);
- }
- else if ( args.Cell.Column.Key == "CPE_Cast_c")
- {
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PartNum"].ToString().EndsWith("R") )
- {
- string select = "select lotnum as 'Cast_Number', ExpirationDate as 'Expiration-Date', " +
- " case when PerCon_1_2_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then '1' when PerCon_3_4_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then '3' when PerCon_5_6_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then '5' when PerCon_7_8_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then '7' when PerCon_9_10_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then '9' else '' end as RightMould, " +
- " case when PerCon_1_2_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then '2' when PerCon_3_4_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then '4' when PerCon_5_6_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then '6' when PerCon_7_8_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then '8' when PerCon_9_10_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then '10' else '' end as LeftMould, " +
- " case when PerCon_1_2_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then lotnum + '1-2' when PerCon_3_4_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then lotnum + '3-4' when PerCon_5_6_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then lotnum + '5-6' when PerCon_7_8_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then lotnum + '7-8' when PerCon_9_10_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then lotnum + '9-10' else '' end as SerialNo, case when PerCon_1_2_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then PerCon_1_2_Notes_c when PerCon_3_4_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then PerCon_3_4_Notes_c when PerCon_5_6_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then PerCon_5_6_Notes_c when PerCon_7_8_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then PerCon_7_8_Notes_c when PerCon_9_10_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " then PerCon_9_10_Notes_c else '' end as Notes from dbo.partlot where company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and expirationdate > GETDATE() and ( PerCon_1_2_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " or PerCon_3_4_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " or PerCon_5_6_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() +" or PerCon_7_8_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() +" or PerCon_9_10_c = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + ")";
- if ( ((Ice.Core.Session)oTrans.Session).CompanyID == "250" )
- {
- select = "select lotnum as 'Cast_Number', ExpirationDate as 'Expiration-Date', " +
- " case when PerCon_1_2_c = glb.perconid then '1' when PerCon_3_4_c = glb.perconid then '3' when PerCon_5_6_c = glb.perconid then '5' when PerCon_7_8_c = glb.perconid then '7' when PerCon_9_10_c = glb.perconid then '9' else '' end as RightMould, " +
- " case when PerCon_1_2_c = glb.perconid then '2' when PerCon_3_4_c = glb.perconid then '4' when PerCon_5_6_c = glb.perconid then '6' when PerCon_7_8_c = glb.perconid then '8' when PerCon_9_10_c = glb.perconid then '10' else '' end as LeftMould, " +
- " case when PerCon_1_2_c = glb.perconid then lotnum + '1-2' when PerCon_3_4_c = glb.perconid then lotnum + '3-4' when PerCon_5_6_c = glb.perconid then lotnum + '5-6' when PerCon_7_8_c = glb.perconid then lotnum + '7-8' when PerCon_9_10_c = glb.perconid then lotnum + '9-10' else '' end as SerialNo, " +
- " case when PerCon_1_2_c = glb.perconid then PerCon_1_2_Notes_c when PerCon_3_4_c = glb.perconid then PerCon_3_4_Notes_c when PerCon_5_6_c = glb.perconid then PerCon_5_6_Notes_c when PerCon_7_8_c = glb.perconid then PerCon_7_8_Notes_c when PerCon_9_10_c = glb.perconid then PerCon_9_10_Notes_c else '' end as Notes from dbo.partlot as pl with (nolock) join erp.glbpercon as glb with (nolock) on pl.company = glb.company and glb.glbperconid = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " and ( pl.PerCon_1_2_c = glb.perconid or pl.PerCon_3_4_c = glb.perconid or pl.PerCon_5_6_c = glb.perconid or pl.PerCon_7_8_c = glb.perconid or pl.PerCon_9_10_c = glb.perconid ) where pl.company = '200' and expirationdate > GETDATE() ";
- }
- LaunchCastSearch(select, true);
- }
- }
- else if ( args.Cell.Column.Key == "Search_c" )
- {
- if ( edvOrderDtl.Row > -1 )
- {
- //MessageBox.Show("1");
- string select = "SELECT PerConID as PerConID, FirstName, LastName, DOB_c as DOB, EmployeeNum_c as EmployeeNum, CorpName as Company, Comment," +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " '1' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " '3' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " '5' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " '7' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " '9' " +
- " else " +
- " '' " +
- " end as RightMould, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " '2' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " '4' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " '6' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " '8' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " '10' " +
- " else " +
- " '' " +
- " end as LeftMould, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " plo.lotnum + '1-2' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " plo.lotnum + '3-4' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " plo.lotnum + '5-6' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " plo.lotnum + '7-8' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " plo.lotnum + '9-10' " +
- " else " +
- " '' " +
- " end as SerialNo" +
- " , case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " plo.PerCon_1_2_Notes_c " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " plo.PerCon_3_4_Notes_c " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " plo.PerCon_5_6_Notes_c " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " plo.PerCon_7_8_Notes_c " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " plo.PerCon_9_10_Notes_c " +
- " else " +
- " '' " +
- " end " +
- " as Notes, " +
- " plo.ExpirationDate as ExpirationDate, " +
- " plo.lotnum as ExistingCast " +
- " ,ml.MfgLoc" +
- " from dbo.percon with (nolock) " +
- " left outer join dbo.partlot as plo on plo.company = dbo.percon.company and plo.ExpirationDate > GetDate() and ( plo.percon_1_2_c = PerConID or plo.percon_3_4_c = PerConID or plo.percon_5_6_c = PerConID or plo.percon_7_8_c = PerConID or plo.percon_9_10_c = PerConID) " +
- " LEFT JOIN dbo.CPE_SLXLotNumMfgLoc ml ON ml.LotNum COLLATE SQL_Latin1_General_CP1250_CI_AS = plo.LotNum" +
- " where dbo.percon.company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and dbo.percon.LastName = '" + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConLastName_c"].ToString() + "' and dbo.percon.FirstName = '" + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConFirstName_c"].ToString() + "' order by dbo.percon.perconid, ExistingCast ";
- /*
- string select = "SELECT PerConID as PerConID, FirstName, LastName, DOB_c as DOB, EmployeeNum_c as EmployeeNum, CorpName as Company, Comment," +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then '1' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then '3' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then '5' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then '7' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then '9' " +
- " else '' " +
- " end as RightMould, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then '2' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then '4' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then '6' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then '8' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then '10' " +
- " else '' " +
- " end as LeftMould, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then plo.lotnum + '1-2' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then plo.lotnum + '3-4' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then plo.lotnum + '5-6' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then plo.lotnum + '7-8' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then plo.lotnum + '9-10' " +
- " else '' " +
- " end as SerialNo, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then plo.PerCon_1_2_Notes_c " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then plo.PerCon_3_4_Notes_c " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then plo.PerCon_5_6_Notes_c " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then plo.PerCon_7_8_Notes_c " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then plo.PerCon_9_10_Notes_c " +
- " else '' " +
- " end as Notes, " +
- " plo.ExpirationDate as ExpirationDate, " +
- " plo.lotnum as ExistingCast " +
- " ,ml.MfgLoc" +
- " from dbo.percon with (nolock) " +
- " left outer join dbo.partlot as plo on plo.company = dbo.percon.company and plo.ExpirationDate > GetDate() and ( plo.percon_1_2_c = PerConID or plo.percon_3_4_c = PerConID or plo.percon_5_6_c = PerConID or plo.percon_7_8_c = PerConID or plo.percon_9_10_c = PerConID) " +
- " LEFT JOIN dbo.CPE_SLXLotNumMfgLoc ml ON ml.LotNum COLLATE SQL_Latin1_General_CP1250_CI_AS = plo.LotNum" +
- " where dbo.percon.company = ' ((Ice.Core.Session)oTrans.Session).CompanyID + ' and dbo.percon.LastName like ' edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row][PerConLastName_c].ToString() + %' and dbo.percon.FirstName like ' edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row][PerConFirstName_c].ToString() + %' order by dbo.percon.perconid, ExistingCast ;" ;
- //MessageBox.Show("lastname= " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row][PerConLastName_c].ToString() + " firstname= " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row][PerConFirstName_c].ToString() + " company= " + ((Ice.Core.Session)oTrans.Session).CompanyID);
- //MessageBox.Show(select);
- */
- if ( ((Ice.Core.Session)oTrans.Session).CompanyID != "200" )
- {
- //MessageBox.Show("2");
- select = " select pc.PerConID as PerConID, pc.FirstName, pc.LastName, pc.DOB_c as DOB, pc.EmployeeNum_c as EmployeeNum, pc.Comment, pc.CorpName as Company, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " '1' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " '3' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " '5' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " '7' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " '9' " +
- " else " +
- " '' " +
- " end as RightMould, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " '2' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " '4' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " '6' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " '8' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " '10' " +
- " else " +
- " '' " +
- " end as LeftMould, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " pl.lotnum + '1-2' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " pl.lotnum + '3-4' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " pl.lotnum + '5-6' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " pl.lotnum + '7-8' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " pl.lotnum + '9-10' " +
- " else " +
- " '' " +
- " end as SerialNo, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " pl.PerCon_1_2_Notes_c " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " pl.PerCon_3_4_Notes_c " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " pl.PerCon_5_6_Notes_c " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " pl.PerCon_7_8_Notes_c " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " pl.PerCon_9_10_Notes_c " +
- " else " +
- " '' " +
- " end as Notes , " +
- " pl.ExpirationDate as ExpirationDate, " +
- " pl.lotnum as ExistingCast " +
- " ,ml.MfgLoc" +
- " from dbo.percon as pc with (nolock) " +
- " join erp.glbpercon as gpc on '200' = gpc.company and gpc.GlbCompany = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and gpc.glbperconid = pc.perconid " +
- " left outer join dbo.PartLot as pl with (nolock)on pl.company = gpc.company and pl.expirationdate > Getdate() and ( (pl.percon_1_2_c = gpc.PerConID and gpc.perconid > 0 ) or " +
- " ( pl.percon_3_4_c = gpc.PerConID and gpc.perconid > 0 ) or (pl.percon_5_6_c = gpc.PerConID and gpc.perconid > 0 ) or (pl.percon_7_8_c = gpc.PerConID and gpc.perconid > 0 ) or ( pl.percon_9_10_c = gpc.PerConID and gpc.perconid > 0 )) " +
- " LEFT JOIN dbo.CPE_SLXLotNumMfgLoc ml ON ml.LotNum COLLATE SQL_Latin1_General_CP1250_CI_AS = pl.LotNum" +
- " where pc.company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and pc.LastName = '" + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConLastName_c"].ToString() + "' and pc.FirstName = '" + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConFirstName_c"].ToString() + "' order by pc.perconid, pl.lotnum";
- }
- // MessageBox.Show("1351");
- // txtQuery.Text += "1351***********************************************1351\n\n" + select;
- //MessageBox.Show("1410");
- if ( LaunchSearch(select) )
- {
- //MessageBox.Show("3");
- select = " select PerConID as PerConID, FirstName, LastName, DOB_c as DOB, EmployeeNum_c as EmployeeNum, CorpName as Company, Comment," +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " '1' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " '3' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " '5' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " '7' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " '9' " +
- " else " +
- " '' " +
- " end as RightMould, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " '2' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " '4' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " '6' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " '8' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " '10' " +
- " else " +
- " '' " +
- " end as LeftMould, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " plo.lotnum + '1-2' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " plo.lotnum + '3-4' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " plo.lotnum + '5-6' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " plo.lotnum + '7-8' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " plo.lotnum + '9-10' " +
- " else " +
- " '' " +
- " end as SerialNo " +
- " , case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " plo.PerCon_1_2_Notes_c " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " plo.PerCon_3_4_Notes_c " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " plo.PerCon_5_6_Notes_c " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " plo.PerCon_7_8_Notes_c " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " plo.PerCon_9_10_Notes_c " +
- " else " +
- " '' " +
- " end " +
- " as Notes, " +
- " plo.ExpirationDate as ExpirationDate, " +
- " plo.lotnum as ExistingCast " +
- " ,ml.MfgLoc" +
- " from dbo.percon with (nolock) " +
- " left outer join dbo.partlot as plo on plo.company = dbo.percon.company and plo.ExpirationDate > GetDate() and ( plo.percon_1_2_c = PerConID or plo.percon_3_4_c = PerConID or plo.percon_5_6_c = PerConID or plo.percon_7_8_c = PerConID or plo.percon_9_10_c = PerConID) " +
- " LEFT JOIN dbo.CPE_SLXLotNumMfgLoc ml ON ml.LotNum COLLATE SQL_Latin1_General_CP1250_CI_AS = plo.LotNum" +
- " where dbo.percon.company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and dbo.percon.LastName like '" + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConLastName_c"].ToString() + "%' and dbo.percon.FirstName like '" + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConFirstName_c"].ToString() + "%' order by dbo.percon.perconid, ExistingCast ";
- if ( ((Ice.Core.Session)oTrans.Session).CompanyID != "200" )
- {
- //MessageBox.Show("4");
- select = " select pc.PerConID as PerConID, pc.FirstName, pc.LastName, pc.DOB_c as DOB, pc.EmployeeNum_c as EmployeeNum, pc.Comment, pc.CorpName as Company, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " '1' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " '3' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " '5' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " '7' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " '9' " +
- " else " +
- " '' " +
- " end as RightMould, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " '2' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " '4' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " '6' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " '8' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " '10' " +
- " else " +
- " '' " +
- " end as LeftMould, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " pl.lotnum + '1-2' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " pl.lotnum + '3-4' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " pl.lotnum + '5-6' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " pl.lotnum + '7-8' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " pl.lotnum + '9-10' " +
- " else " +
- " '' " +
- " end as SerialNo, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " pl.PerCon_1_2_Notes_c " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " pl.PerCon_3_4_Notes_c " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " pl.PerCon_5_6_Notes_c " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " pl.PerCon_7_8_Notes_c " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " pl.PerCon_9_10_Notes_c " +
- " else " +
- " '' " +
- " end as Notes , " +
- " pl.ExpirationDate as ExpirationDate, " +
- " pl.lotnum as ExistingCast " +
- " ,ml.MfgLoc" +
- " from dbo.percon as pc with (nolock) " +
- " join erp.glbpercon as gpc on '200' = gpc.company and gpc.GlbCompany = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and gpc.glbperconid = pc.perconid " +
- " left outer join dbo.PartLot as pl with (nolock)on pl.company = gpc.company and pl.expirationdate > Getdate() and ( ( pl.percon_1_2_c = gpc.PerConID and gpc.perconid > 0 ) or " +
- " ( pl.percon_3_4_c = gpc.PerConID and gpc.perconid > 0 ) or ( pl.percon_5_6_c = gpc.PerConID and gpc.perconid > 0 ) or ( pl.percon_7_8_c = gpc.PerConID and gpc.perconid > 0 ) or ( pl.percon_9_10_c = gpc.PerConID and gpc.perconid > 0 ) ) " +
- " LEFT JOIN dbo.CPE_SLXLotNumMfgLoc ml ON ml.LotNum COLLATE SQL_Latin1_General_CP1250_CI_AS = pl.LotNum" +
- " where pc.company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and pc.LastName like '" + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConLastName_c"].ToString() + "%' and pc.FirstName like '" + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConFirstName_c"].ToString() + "%' order by pc.perconid, pl.lotnum";
- }
- // MessageBox.Show("1480");
- // txtQuery.Text += "1480***********************************************1480\n\n" + select;
- if (LaunchSearch(select) )
- {
- MessageBox.Show("No contacts found with\nLastName starts or equal to:" + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConLastName_c"].ToString() + "\nand FirstName starts or equal to:" + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConFirstName_c"].ToString());
- }
- }
- }
- // MessageBox.Show("1548: Leaving Search_c press");
- }
- }
- private void AddNewLine()
- {
- try
- {
- oTrans.GetNewOrderDtl();
- }catch ( Exception ex )
- {
- MessageBox.Show("AddNewLine error : " + ex.Message);
- }
- }
- private void CopyFromPrevious(bool bCopyContact)
- {
- try
- {
- if ( edvOrderDtl.Row > 0 )
- {
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["RowMod"].ToString() == "A" )
- {
- m_copying = true;
- foreach ( DataColumn column in edvOrderDtl.dataView.Table.Columns )
- {
- if ( m_hashCopyColumns.Contains(column.ColumnName.ToLower()))
- {
- if ( bCopyContact == false && ( column.ColumnName.ToLower().StartsWith("percon") || column.ColumnName.ToLower().StartsWith("employeenum_c")) )
- {
- }
- else if ( bCopyContact == false && ( column.ColumnName.ToLower() == "cpe_mouldright_c" || column.ColumnName.ToLower() == "cpe_mouldleft_c" || column.ColumnName.ToLower() == "cpe_cast_c" ))
- {
- }
- else
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row][column.ColumnName] = edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row - 1][column.ColumnName];
- }
- }
- }
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["DocUnitPrice"] = edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row - 1]["DocUnitPrice"];
- m_copying = false;
- }
- }
- }catch ( Exception ex )
- {
- MessageBox.Show("Copy from previous error: " + ex.Message);
- }
- }
- # region SearchDialog
- public class ContactSearch : Form
- {
- public string columnName;
- public string selectedValue;
- public bool m_bSelected;
- public string m_server;
- public string m_user;
- public string m_password;
- public string m_dataBase;
- public string m_select;
- public bool m_multiSelect;
- public DataTable m_dtSelected;
- public DataTable m_dtResults;
- private System.Windows.Forms.Button btnSelect;
- private System.Windows.Forms.Button btnCancel;
- private System.Windows.Forms.DataGridView dataGridView1;
- private System.ComponentModel.IContainer components = null;
- public ContactSearch(string title )
- {
- InitializeComponent();
- m_dtSelected = new DataTable();
- this.Text = title;
- }
- public bool InitSearch(string server, string database, string password, string user, string select, bool multiselect, out bool nothingFound, bool newRow, out string oneRecord)
- {
- oneRecord = "";
- nothingFound = false;
- m_bSelected = false;
- m_server = server;
- m_password = password;
- m_user = user;
- m_dataBase = database;
- m_select = select;
- m_multiSelect = multiselect;
- dataGridView1.MultiSelect = multiselect;
- return LoadGrid(out nothingFound, out oneRecord, newRow);
- }
- protected override void Dispose(bool disposing)
- {
- m_dtSelected.Dispose();
- m_dtSelected = null;
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void InitializeComponent()
- {
- this.btnSelect = new System.Windows.Forms.Button();
- this.btnCancel = new System.Windows.Forms.Button();
- this.dataGridView1 = new System.Windows.Forms.DataGridView();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
- this.SuspendLayout();
- //
- // btnSelect
- //
- this.btnSelect.Location = new System.Drawing.Point(12, 192);
- this.btnSelect.Name = "btnSelect";
- this.btnSelect.Size = new System.Drawing.Size(117, 26);
- this.btnSelect.TabIndex = 0;
- this.btnSelect.Text = "Select";
- this.btnSelect.UseVisualStyleBackColor = true;
- this.btnSelect.Click += new System.EventHandler(this.btnSelect_Click);
- //
- // btnCancel
- //
- this.btnCancel.Location = new System.Drawing.Point(135, 192);
- this.btnCancel.Name = "btnCancel";
- this.btnCancel.Size = new System.Drawing.Size(117, 26);
- this.btnCancel.TabIndex = 1;
- this.btnCancel.Text = "Cancel";
- this.btnCancel.UseVisualStyleBackColor = true;
- this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
- //
- // dataGridView1
- //
- this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridView1.Location = new System.Drawing.Point(12, 12);
- this.dataGridView1.Name = "dataGridView1";
- this.dataGridView1.Size = new System.Drawing.Size(840, 174);
- this.dataGridView1.TabIndex = 2;
- this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
- this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
- this.dataGridView1.Anchor = (AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Left);
- //
- // Form1
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(860, 230);
- this.Controls.Add(this.dataGridView1);
- this.Controls.Add(this.btnCancel);
- this.Controls.Add(this.btnSelect);
- this.Name = "Form1";
- this.Text = "Person / Contact";
- this.Load += new System.EventHandler(this.Form1_Load);
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
- this.ResumeLayout(false);
- }
- private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
- {
- }
- private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
- {
- m_dtSelected = ((DataTable)dataGridView1.DataSource).Clone();
- DataRow row = ((DataRowView)dataGridView1.Rows[e.RowIndex].DataBoundItem).Row;
- m_dtSelected.ImportRow(row);
- m_bSelected = true;
- //MessageBox.Show(m_dtSelected.Rows[0][0].ToString());
- this.Close();
- }
- private bool LoadGrid(out bool nothingFound, out string oneRecord, bool newRow)
- {
- bool bHasResults = false;
- nothingFound = false;
- oneRecord = "";
- try
- {
- dataGridView1.DataSource = null;
- m_dtResults = SQLExecuteSelect(m_select);
- if ( m_dtResults.Rows.Count > 0 )
- {
- if ( m_dtResults.Rows.Count == 1 )
- {
- oneRecord = m_dtResults.Rows[0][0].ToString();
- }
- if ( newRow )
- {
- DataRow theNewRow = m_dtResults.NewRow();
- theNewRow[0] = "New";
- for ( int index = 1; index < m_dtResults.Columns.Count; ++index )
- {
- try{
- theNewRow[index] = "";
- }catch {
- try
- {
- theNewRow[index] = 0;
- }catch{}
- }
- }
- m_dtResults.Rows.Add(theNewRow);
- }
- bHasResults = true;
- dataGridView1.DataSource = m_dtResults;
- dataGridView1.Rows[0].Selected = true;
- }
- else
- {
- nothingFound = true;
- }
- }
- catch(Exception ex)
- {
- MessageBox.Show("LoadGrid error: " + ex.Message);
- }
- return bHasResults;
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- dataGridView1.AllowUserToAddRows = false;
- dataGridView1.ReadOnly = true;
- m_bSelected = false;
- }
- private void btnCancel_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- private void btnSelect_Click(object sender, EventArgs e)
- {
- //MessageBox.Show("btnSelect_Click: 1797");
- if (dataGridView1.SelectedRows.Count > 0)
- {
- m_dtSelected = ((DataTable)dataGridView1.DataSource).Clone();
- for (int index = 0; index < dataGridView1.SelectedRows.Count; ++index )
- {
- DataRow row = ((DataRowView)dataGridView1.SelectedRows[index].DataBoundItem).Row;
- m_dtSelected.ImportRow(row);
- m_bSelected = true;
- }
- /*string id = "\n";
- foreach (DataRow row in m_dtSelected.Rows)
- {
- id += row[0].ToString() + "\n";
- }
- MessageBox.Show(id);*/
- this.Close();
- }
- else{
- MessageBox.Show("Nothing selected.");
- }
- }
- private System.Data.SqlClient.SqlConnection GetSQLConnection()
- {
- try
- {
- System.Data.SqlClient.SqlConnection SQLCon = new System.Data.SqlClient.SqlConnection();
- string timeout = "3000";
- string connectionString = "Persist Security Info=false;Integrated Security=false;database=" + m_dataBase + ";User ID=" + m_user + ";password=" + m_password + ";server=" + m_server + ";Connect Timeout=" + timeout;
- SQLCon.ConnectionString = connectionString;
- SQLCon.Open();
- return SQLCon;
- }
- catch (Exception ex)
- {
- MessageBox.Show("GetSQLConnection error: " + ex.Message);
- }
- return null;
- }
- private DataTable SQLExecuteSP(string storedProcedure, System.Collections.Hashtable parameters)
- {
- DataTable dt = new DataTable();
- try
- {
- System.Data.SqlClient.SqlConnection SQLCon = GetSQLConnection();
- System.Data.SqlClient.SqlCommand SQLCmd = new System.Data.SqlClient.SqlCommand();
- SQLCmd.CommandText = storedProcedure;
- SQLCmd.CommandType = CommandType.StoredProcedure;
- SQLCmd.CommandTimeout = 90;
- SQLCmd.Connection = SQLCon;
- foreach (System.Collections.DictionaryEntry dic in parameters)
- {
- SQLCmd.Parameters.AddWithValue(dic.Key.ToString(), dic.Value.ToString());
- }
- //SQLCmd.Parameters("TotPcs").Direction = ParameterDirection.Output
- System.Data.SqlClient.SqlDataReader reader = SQLCmd.ExecuteReader();
- dt.Load(reader);
- SQLCmd.Dispose();
- reader.Dispose();
- SQLCmd = null;
- reader = null;
- DisconnectCon(SQLCon);
- }
- catch (Exception ex)
- {
- MessageBox.Show("Stored Procedure error " + ex.Message + "\n\n" + storedProcedure);
- }
- return dt;
- }
- private void SQLExecuteNonQuery(string bigUpdate)
- {
- try
- {
- System.Data.SqlClient.SqlConnection SQLCon = GetSQLConnection();
- string sqlStatement = bigUpdate;
- System.Data.SqlClient.SqlCommand command = new System.Data.SqlClient.SqlCommand(sqlStatement, SQLCon);
- System.Data.SqlClient.SqlDataReader reader = command.ExecuteReader();
- DisconnectCon(SQLCon);
- }
- catch (Exception ex)
- {
- MessageBox.Show("SQLExecuteNonQuery error: " + ex.Message + "\n" + bigUpdate);
- }
- }
- private DataTable SQLExecuteSelect(string selectStatement)
- {
- DataTable dt = new DataTable();
- try
- {
- System.Data.SqlClient.SqlConnection SQLCon = GetSQLConnection();
- System.Data.SqlClient.SqlCommand command = new System.Data.SqlClient.SqlCommand(selectStatement, SQLCon);
- command.CommandTimeout = 90;
- System.Data.SqlClient.SqlDataReader reader = command.ExecuteReader();
- dt.Load(reader);
- DisconnectCon(SQLCon);
- // set readonly = false
- foreach (DataColumn col in dt.Columns)
- {
- col.ReadOnly = false;
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show("Select statement error " + ex.Message + "\n\n" + selectStatement);
- }
- return dt;
- }
- private void DisconnectCon(System.Data.SqlClient.SqlConnection SQLCon)
- {
- try
- {
- SQLCon.Close();
- SQLCon = null;
- }
- catch (Exception ex)
- {
- }
- }
- }
- # endregion SearchDialog
- private void grdDtlList_CellChange(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs args)
- {
- try
- {
- string searchType = "Auto3";
- try
- {
- searchType = cmbSearchType.Value.ToString();
- }catch{}
- if ( searchType == "Auto3" )
- {
- if ( args.Cell.Column.Key == "PerConLastName_c" )
- {
- if ( args.Cell.Text.Length == 3 )
- {
- args.Cell.Row.Cells["PerConFirstName_c"].Value = "";
- args.Cell.Row.Cells["PerConDOB_c"].Value = System.DBNull.Value;
- args.Cell.Row.Cells["EmployeeNum_c"].Value = "";
- string select = " select PerConID as PerConID, FirstName, LastName, DOB_c as DOB, EmployeeNum_c as EmployeeNum, Comment, CorpName as Company, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " '1' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " '3' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " '5' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " '7' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " '9' " +
- " else " +
- " '' " +
- " end as RightMould, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " '2' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " '4' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " '6' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " '8' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " '10' " +
- " else " +
- " '' " +
- " end as LeftMould, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " plo.lotnum + '1-2' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " plo.lotnum + '3-4' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " plo.lotnum + '5-6' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " plo.lotnum + '7-8' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " plo.lotnum + '9-10' " +
- " else " +
- " '' " +
- " end as SerialNo, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " plo.PerCon_1_2_Notes_c " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " plo.PerCon_3_4_Notes_c " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " plo.PerCon_5_6_Notes_c " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " plo.PerCon_7_8_Notes_c " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " plo.PerCon_9_10_Notes_c " +
- " else " +
- " '' " +
- " end " +
- " as Notes, " +
- " plo.ExpirationDate as ExpirationDate, " +
- " plo.lotnum as ExistingCast " +
- " from dbo.percon with (nolock) " +
- " left outer join dbo.partlot as plo on plo.company = dbo.percon.company and plo.ExpirationDate > GetDate() and ( plo.percon_1_2_c = PerConID or plo.percon_3_4_c = PerConID or plo.percon_5_6_c = PerConID or plo.percon_7_8_c = PerConID or plo.percon_9_10_c = PerConID) " +
- " where dbo.percon.company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and dbo.percon.LastName like '" + args.Cell.Text + "%' order by dbo.percon.perconid, ExistingCast ";
- if ( ((Ice.Core.Session)oTrans.Session).CompanyID != "200" )
- {
- select = " select pc.PerConID as PerConID, pc.FirstName, pc.LastName, pc.DOB_c as DOB, pc.EmployeeNum_c as EmployeeNum, pc.Comment, pc.CorpName as Company, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " '1' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " '3' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " '5' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " '7' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " '9' " +
- " else " +
- " '' " +
- " end as RightMould, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " '2' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " '4' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " '6' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " '8' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " '10' " +
- " else " +
- " '' " +
- " end as LeftMould, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " pl.lotnum + '1-2' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " pl.lotnum + '3-4' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " pl.lotnum + '5-6' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " pl.lotnum + '7-8' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " pl.lotnum + '9-10' " +
- " else " +
- " '' " +
- " end as SerialNo, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " pl.PerCon_1_2_Notes_c " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " pl.PerCon_3_4_Notes_c " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " pl.PerCon_5_6_Notes_c " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " pl.PerCon_7_8_Notes_c " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " pl.PerCon_9_10_Notes_c " +
- " else " +
- " '' " +
- " end as Notes , " +
- " pl.ExpirationDate as ExpirationDate, " +
- " pl.lotnum as ExistingCast " +
- " from dbo.percon as pc with (nolock) " +
- " join erp.glbpercon as gpc on '200' = gpc.company and gpc.GlbCompany = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and gpc.glbperconid = pc.perconid " +
- " left outer join dbo.PartLot as pl with (nolock)on pl.company = gpc.company and pl.expirationdate > Getdate() and ( ( pl.percon_1_2_c = gpc.PerConID and gpc.perconid > 0 ) or " +
- " ( pl.percon_3_4_c = gpc.PerConID and gpc.perconid > 0 ) or ( pl.percon_5_6_c = gpc.PerConID and gpc.perconid > 0 ) or ( pl.percon_7_8_c = gpc.PerConID and gpc.perconid > 0 ) or ( pl.percon_9_10_c = gpc.PerConID and gpc.perconid > 0 ) ) " +
- " where pc.company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and pc.LastName like '" + args.Cell.Text + "%' order by pc.perconid, pl.lotnum";
- }
- // MessageBox.Show("2025");
- // txtQuery.Text += "2025***********************************************2025\n\n" + select;
- LaunchSearch(select);
- }
- }
- }
- }catch ( Exception ex )
- {
- MessageBox.Show("Cell change error: " + ex.Message);
- }
- }
- private bool LaunchSearch(string select)
- {
- return LaunchSearch(select, true);
- }
- private bool LaunchSearch(string select, bool bAlwaysShow)
- {
- txtQuery.Text = select;
- bool nothingFound = false;
- try
- {
- string oneRow = "";
- //ENV
- if (m_ContactSearch.InitSearch("CPE-ERPSQL", "erp1016CRP", "Ep1c0rViews", "EpicorViews", select, false, out nothingFound, false, out oneRow))
- {
- if ( string.IsNullOrEmpty(oneRow) || bAlwaysShow )
- {
- m_ContactSearch.ShowDialog();
- }
- else if ( bAlwaysShow == false )
- {
- m_ContactSearch.m_bSelected = true;
- }
- if ( m_ContactSearch.m_bSelected )
- {
- grdDtlList.ActiveCell = grdDtlList.ActiveRow.Cells["PartNum"];
- grdDtlList.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode, false, false);
- int perConID = Convert.ToInt32(m_ContactSearch.m_dtSelected.Rows[0]["PerConID"]);
- //greg - percon has been selected. Query to see if there's any comments on the contact and show in messagebox if so.
- //string select2 = "SELECT Comment FROM ERP.PerCon pc WHERE pc.Company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' AND pc.PerConID = " + perConID;
- if ( m_ContactSearch.m_dtSelected.Rows[0]["Comment"] != System.DBNull.Value )
- {
- string temp = m_ContactSearch.m_dtSelected.Rows[0]["Comment"].ToString();
- if ( !string.IsNullOrEmpty(temp) )
- {
- MessageBox.Show("LaunchSearch error: " + temp);
- }
- }
- if ( m_ContactSearch.m_dtSelected.Rows[0]["LastName"] != System.DBNull.Value )
- {
- if (edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConLastName_c"].ToString() != m_ContactSearch.m_dtSelected.Rows[0]["LastName"].ToString())
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConLastName_c"] = m_ContactSearch.m_dtSelected.Rows[0]["LastName"].ToString();
- }
- }
- if ( m_ContactSearch.m_dtSelected.Rows[0]["FirstName"] != System.DBNull.Value )
- {
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConFirstName_c"].ToString() != m_ContactSearch.m_dtSelected.Rows[0]["FirstName"].ToString().ToString() )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConFirstName_c"] = m_ContactSearch.m_dtSelected.Rows[0]["FirstName"].ToString();
- }
- }
- if ( m_ContactSearch.m_dtSelected.Rows[0]["DOB"] != System.DBNull.Value )
- {
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConDOB_c"].ToString() != (m_ContactSearch.m_dtSelected.Rows[0]["DOB"]).ToString() )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConDOB_c"] = (m_ContactSearch.m_dtSelected.Rows[0]["DOB"]);
- }
- }
- if ( m_ContactSearch.m_dtSelected.Rows[0]["EmployeeNum"] != System.DBNull.Value )
- {
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["EmployeeNum_c"].ToString() != (m_ContactSearch.m_dtSelected.Rows[0]["EmployeeNum"]).ToString() )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["EmployeeNum_c"] = (m_ContactSearch.m_dtSelected.Rows[0]["EmployeeNum"]);
- }
- }
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConCorpName_c"].ToString() != (m_ContactSearch.m_dtSelected.Rows[0]["Company"]).ToString() )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerConCorpName_c"] = (m_ContactSearch.m_dtSelected.Rows[0]["Company"]);
- }
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() != perConID.ToString() )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"] = perConID;
- }
- if ( edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PartNum"].ToString().EndsWith("R") )
- {
- string newselect = "select lotnum as 'Cast_Number', ExpirationDate as 'Expiration-Date', " +
- " case when PerCon_1_2_c = " + perConID.ToString() + " then '1' when PerCon_3_4_c = " + perConID.ToString() + " then '3' when PerCon_5_6_c = " + perConID.ToString() + " then '5' when PerCon_7_8_c = " + perConID.ToString() + " then '7' when PerCon_9_10_c = " + perConID.ToString() + " then '9' else '' end as RightMould, " +
- " case when PerCon_1_2_c = " + perConID.ToString() + " then '2' when PerCon_3_4_c = " + perConID.ToString() + " then '4' when PerCon_5_6_c = " + perConID.ToString() + " then '6' when PerCon_7_8_c = " + perConID.ToString() + " then '8' when PerCon_9_10_c = " + perConID.ToString() + " then '10' else '' end as LeftMould, " +
- " case when PerCon_1_2_c = " + perConID.ToString() + " then lotnum + '1-2' when PerCon_3_4_c = " + perConID.ToString() + " then lotnum + '3-4' when PerCon_5_6_c = " + perConID.ToString() + " then lotnum + '5-6' when PerCon_7_8_c = " + perConID.ToString() + " then lotnum + '7-8' when PerCon_9_10_c = " + perConID.ToString() + " then lotnum + '9-10' else '' end as SerialNo, " +
- " case when PerCon_1_2_c = " + perConID.ToString() + " then PerCon_1_2_Notes_c when PerCon_3_4_c = " + perConID.ToString() + " then PerCon_3_4_Notes_c when PerCon_5_6_c = " + perConID.ToString() + " then PerCon_5_6_Notes_c when PerCon_7_8_c = " + perConID.ToString() + " then PerCon_7_8_Notes_c when PerCon_9_10_c = " + perConID.ToString() + " then PerCon_9_10_Notes_c else '' end as Notes from dbo.partlot where company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and expirationdate > GETDATE() and ( PerCon_1_2_c = " + perConID.ToString() + " or PerCon_3_4_c = " + perConID.ToString() + " or PerCon_5_6_c = " + perConID.ToString() +" or PerCon_7_8_c = " + perConID.ToString() +" or PerCon_9_10_c = " + perConID.ToString() + ")";
- // "select lotnum as 'Cast_Number', ExpirationDate as 'Expiration-Date' from erp.partlot where company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and lotnum in (select distinct(pl.lotnum) from erp.partlot as pl with (nolock) join dbo.PlantConfCtrl as pcc with (nolock) on pl.company = pcc.company and pl.partnum = pcc.CastPartNum_c and pcc.plant = '" + ((Ice.Core.Session)oTrans.Session).PlantID + "' and pcc.company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' join dbo.orderdtl as od with (nolock) on od.company = pl.company and pl.lotnum = od.CPE_Cast_c join dbo.PerCon as pc with (nolock) on pc.company = od.company and pc.PerConID = od.PerCon_c where pc.PerConID = " + perConID.ToString() + " and pl.expirationdate > GETDATE())";
- if ( ((Ice.Core.Session)oTrans.Session).CompanyID == "250" )
- {
- select = "select lotnum as 'Cast_Number', ExpirationDate as 'Expiration-Date', " +
- " case when PerCon_1_2_c = glb.perconid then '1' when PerCon_3_4_c = glb.perconid then '3' when PerCon_5_6_c = glb.perconid then '5' when PerCon_7_8_c = glb.perconid then '7' when PerCon_9_10_c = glb.perconid then '9' else '' end as RightMould, " +
- " case when PerCon_1_2_c = glb.perconid then '2' when PerCon_3_4_c = glb.perconid then '4' when PerCon_5_6_c = glb.perconid then '6' when PerCon_7_8_c = glb.perconid then '8' when PerCon_9_10_c = glb.perconid then '10' else '' end as LeftMould, " +
- " case when PerCon_1_2_c = glb.perconid then lotnum + '1-2' when PerCon_3_4_c = glb.perconid then lotnum + '3-4' when PerCon_5_6_c = glb.perconid then lotnum + '5-6' when PerCon_7_8_c = glb.perconid then lotnum + '7-8' when PerCon_9_10_c = glb.perconid then lotnum + '9-10' else '' end as SerialNo, " +
- " case when PerCon_1_2_c = glb.perconid then PerCon_1_2_Notes_c when PerCon_3_4_c = glb.perconid then PerCon_3_4_Notes_c when PerCon_5_6_c = glb.perconid then PerCon_5_6_Notes_c when PerCon_7_8_c = glb.perconid then PerCon_7_8_Notes_c when PerCon_9_10_c = glb.perconid then PerCon_9_10_Notes_c else '' end as Notes from dbo.partlot as pl with (nolock) join erp.glbpercon as glb with (nolock) on pl.company = glb.company and glb.glbperconid = " + perConID.ToString() + " and ( pl.PerCon_1_2_c = glb.perconid or pl.PerCon_3_4_c = glb.perconid or pl.PerCon_5_6_c = glb.perconid or pl.PerCon_7_8_c = glb.perconid or pl.PerCon_9_10_c = glb.perconid ) where pl.company = '200' and expirationdate > GETDATE() ";
- }
- // MessageBox.Show("2138");
- //txtQuery.Text = select;
- LaunchCastSearch(newselect, false);
- }
- }
- }
- } catch ( Exception ex )
- {
- MessageBox.Show("Launch Search error: " + ex.Message + "\n\n" + select);
- }
- return nothingFound;
- }
- private bool LaunchCastSearch(string select, bool bAlwaysShow)
- {
- txtQuery.Text = select;
- bool nothingFound = false;
- try
- {
- string oneCastNum = "";
- string salesUM = edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["SalesUM"].ToString().Trim().ToLower();
- //ENV
- if (m_CastSearch.InitSearch("CPE-ERPSQL", "erp1016CRP", "Ep1c0rViews", "EpicorViews", select, false, out nothingFound, true, out oneCastNum) )
- {
- if ( string.IsNullOrEmpty(oneCastNum) || bAlwaysShow )
- {
- m_CastSearch.ShowDialog();
- if ( m_CastSearch.m_bSelected )
- {
- grdDtlList.ActiveCell = grdDtlList.ActiveRow.Cells["PartNum"];
- grdDtlList.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode, false, false);
- string castNum = Convert.ToString(m_CastSearch.m_dtSelected.Rows[0]["Cast_Number"]);
- string leftMould = Convert.ToString(m_CastSearch.m_dtSelected.Rows[0]["leftMould"]);
- string rightMould = Convert.ToString(m_CastSearch.m_dtSelected.Rows[0]["rightMould"]);
- if ( castNum.ToLower() == "new" )
- {
- castNum = "";
- leftMould = "";
- rightMould = "";
- }
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_Cast_c"] = castNum;
- if ( salesUM == "pr" || salesUM == "right" || salesUM == "ea" )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_DspMouldRight_c"] = rightMould;
- }
- if ( salesUM == "pr" || salesUM == "left" || salesUM == "ea" )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_DspMouldLeft_c"] = leftMould;
- }
- }
- }
- else if (! string.IsNullOrEmpty(oneCastNum) )
- {
- try{
- string leftMould = Convert.ToString(m_CastSearch.m_dtResults.Rows[0]["leftMould"]);
- string rightMould = Convert.ToString(m_CastSearch.m_dtResults.Rows[0]["rightMould"]);
- if ( salesUM == "pr" || salesUM == "right" || salesUM == "ea" )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_DspMouldRight_c"] = rightMould;
- }
- if ( salesUM == "pr" || salesUM == "left" || salesUM == "ea" )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_DspMouldLeft_c"] = leftMould;
- }
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_MouldRight_c"] = rightMould;
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_MouldLeft_c"] = leftMould;}catch{}
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_Cast_c"] = oneCastNum;
- }
- }
- else
- {
- try{
- string leftMould = Convert.ToString(m_CastSearch.m_dtResults.Rows[0]["leftMould"]);
- string rightMould = Convert.ToString(m_CastSearch.m_dtResults.Rows[0]["rightMould"]);
- if ( salesUM == "pr" || salesUM == "right" || salesUM == "ea" )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_DspMouldRight_c"] = rightMould;
- }
- if ( salesUM == "pr" || salesUM == "left" || salesUM == "ea" )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_DspMouldLeft_c"] = leftMould;
- }
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_MouldRight_c"] = rightMould;
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_MouldLeft_c"] = leftMould;}catch{}
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_Cast_c"] = oneCastNum;
- }
- } catch ( Exception ex )
- {
- MessageBox.Show("Launch Cast Search error: " + ex.Message);
- }
- return nothingFound;
- }
- private void grdDtlList_BeforeCellListDropDown(object sender, Infragistics.Win.UltraWinGrid.CancelableCellEventArgs args)
- {
- return;
- //try
- // {
- // if ( args.Cell.Column.Key == "SalesUM" )
- // {
- //
- // Infragistics.Win.ValueList theList = new Infragistics.Win.ValueList();
- // System.Collections.Hashtable parameters = new System.Collections.Hashtable();
- // parameters.Add("ppartnum", edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PartNum"].ToString() );
- //
- // DataTable dt = GetQueryData("CPEPartUOMClass", parameters);
- //
- // string uomClassID = "";
- // bool bAll = false;
- // if ( dt.Rows.Count > 0 )
- // {
- // uomClassID = dt.Rows[0]["Calculated_Filter"].ToString().ToUpper();
- // }
- // else
- // {
- // bAll = true;
- // }
- //
- // foreach (DataRow row in m_dtSalesUM.Rows )
- // {
- // if ( row["Calculated_Filter"].ToString().ToUpper() == uomClassID || bAll)
- // {
- // theList.ValueListItems.Add(row["Calculated_Display"].ToString(), row["Calculated_Value"].ToString());
- // }
- // }
- //
- // grdDtlList.DisplayLayout.Bands[0].Columns["SalesUM"].ValueList = theList;
- //
- //
- // }
- // }
- // catch ( Exception ex )
- // {
- // MessageBox.Show("Before cell dropdown error: " + ex.Message);
- // }
- }
- private void OrderHed_AfterFieldChange(object sender, DataColumnChangeEventArgs args)
- {
- // ** Argument Properties and Uses **
- // args.Row["FieldName"]
- // args.Column, args.ProposedValue, args.Row
- // Add Event Handler Code
- switch (args.Column.ColumnName)
- {
- case "OrderSite_c":
- break;
- case "HeaderPriceList_c":
- // set price list from header
- if ( !string.IsNullOrEmpty(args.Row["HeaderPriceList_c"].ToString()) )
- {
- oTrans.Update();
- foreach ( DataRow row in edvOrderDtl.dataView.Table.Rows )
- {
- row["OverridePriceList"] = true;
- row["BreakListCode"] = args.Row["HeaderPriceList_c"];
- }
- oTrans.Update();
- oTrans.Refresh();
- }
- break;
- }
- }
- private void edvOrderRel_EpiViewNotification(EpiDataView view, EpiNotifyArgs args)
- {
- // ** Argument Properties and Uses **
- // view.dataView[args.Row]["FieldName"]
- // args.Row, args.Column, args.Sender, args.NotifyType
- // NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes
- if ((args.NotifyType == EpiTransaction.NotifyType.AddRow))
- {
- if ((args.Row > -1))
- {
- }
- }
- }
- private void OrderHed_BeforeFieldChange(object sender, DataColumnChangeEventArgs args)
- {
- // ** Argument Properties and Uses **
- // args.Row["FieldName"]
- // args.Column, args.ProposedValue, args.Row
- // Add Event Handler Code
- switch (args.Column.ColumnName)
- {
- case "OrderSite_c":
- if ( edvOrderRel.dataView.Table.Rows.Count > 0 )
- {
- MessageBox.Show("Changing the Order Site will not update existing order line release site values.");
- }
- break;
- }
- }
- private void cmbSearchType_ValueChanged(object sender, System.EventArgs args)
- {
- try
- {
- if ( cmbSearchType.Value.ToString() == "Auto3" )
- {
- grdDtlList.DisplayLayout.Bands[0].Columns["Search_c"].Hidden = true;
- }
- else
- {
- grdDtlList.DisplayLayout.Bands[0].Columns["Search_c"].Hidden = false;
- }
- }
- catch {}
- }
- private void edvOrderHed_EpiViewNotification(EpiDataView view, EpiNotifyArgs args)
- {
- // ** Argument Properties and Uses **
- // view.dataView[args.Row]["FieldName"]
- // args.Row, args.Column, args.Sender, args.NotifyType
- // NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes
- try
- {
- if ((args.Row > -1))
- {
- string company = view.dataView[args.Row]["Company"].ToString();
- string custID =view.dataView[args.Row]["CustomerCustID"].ToString();
- if(company =="200" && custID=="250"){
- txtCustomerPONum.ReadOnly =false;
- txtCustomerPONum.Visible = true;
- lblCustomerPONum.Visible = true;
- epiTextBoxSalesRepCode1.Value = view.dataView[args.Row]["PEU_SalesRepCode1_c"].ToString();
- }
- else{
- txtCustomerPONum.ReadOnly =false;
- txtCustomerPONum.Visible = false;
- lblCustomerPONum.Visible = false;
- epiTextBoxSalesRepCode1.Value = view.dataView[args.Row]["SalesRepCode1"].ToString();
- }
- if ( m_custID != Convert.ToString(view.dataView[args.Row]["CustomerCustID"]) )
- {
- m_custID = Convert.ToString(view.dataView[args.Row]["CustomerCustID"]) ;
- if ( Convert.ToBoolean(view.dataView[args.Row]["OpenOrder"]) )
- {
- edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["CommentsFromCustomer_c"] = "Start";
- System.Collections.Hashtable parameters = new System.Collections.Hashtable();
- parameters.Add("pcustid", m_custID);
- DataTable dt = GetQueryData("CPECustomerComments", parameters);
- if ( dt.Rows.Count > 0 )
- {
- edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["CommentsFromCustomer_c"] = dt.Rows[0]["Calculated_Comments"];
- }
- }
- }
- if ( m_custNum != Convert.ToInt32(view.dataView[args.Row]["CustNum"]) || m_shipToNum != Convert.ToString(view.dataView[args.Row]["ShipToNum"]) )
- {
- m_custNum = Convert.ToInt32(view.dataView[args.Row]["CustNum"]);
- m_shipToNum = Convert.ToString(view.dataView[args.Row]["ShipToNum"]);
- SetHeaderPriceListDropDown(m_custNum, m_shipToNum);
- }
- }
- else
- {
- m_custID = "";
- m_custNum = 0;
- m_shipToNum = "";
- }
- }
- catch ( Exception ex )
- {
- MessageBox.Show("edvOrderHed_EpiViewNotification error: " + ex.Message);
- }
- }
- private void oTrans_ordAdapter_AfterAdapterMethod(object sender, AfterAdapterMethodArgs args)
- {
- // ** Argument Properties and Uses **
- // ** args.MethodName **
- // ** Add Event Handler Code **
- // ** Use MessageBox to find adapter method name
- // MessageBox.Show(args.MethodName);
- switch (args.MethodName)
- {
- case "ChangeSoldToID":
- edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["CommentsFromCustomer_c"] = "Start";
- System.Collections.Hashtable parameters = new System.Collections.Hashtable();
- parameters.Add("pcustnum", edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["CustNum"].ToString());
- DataTable dt = GetQueryData("CPECustomerComments", parameters);
- if ( dt.Rows.Count > 0 )
- {
- edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["CommentsFromCustomer_c"] = dt.Rows[0]["Calculated_Comments"];
- }
- break;
- }
- }
- private void btnRefreshContact_Click(object sender, System.EventArgs args)
- {
- LoadDOBDropDown();
- string select = " select PerConID as PerConID, FirstName, LastName, DOB_c as DOB, EmployeeNum_c as EmployeeNum, CorpName as Company, Comment," +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " '1' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " '3' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " '5' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " '7' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " '9' " +
- " else " +
- " '' " +
- " end as RightMould, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " '2' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " '4' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " '6' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " '8' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " '10' " +
- " else " +
- " '' " +
- " end as LeftMould, " +
- " case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " plo.lotnum + '1-2' " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " plo.lotnum + '3-4' " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " plo.lotnum + '5-6' " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " plo.lotnum + '7-8' " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " plo.lotnum + '9-10' " +
- " else " +
- " '' " +
- " end as SerialNo" +
- " , case when plo.percon_1_2_c = dbo.percon.PerConID then " +
- " plo.PerCon_1_2_Notes_c " +
- " when plo.percon_3_4_c = dbo.percon.PerConID then " +
- " plo.PerCon_3_4_Notes_c " +
- " when plo.percon_5_6_c = dbo.percon.PerConID then " +
- " plo.PerCon_5_6_Notes_c " +
- " when plo.percon_7_8_c = dbo.percon.PerConID then " +
- " plo.PerCon_7_8_Notes_c " +
- " when plo.percon_9_10_c = dbo.percon.PerConID then " +
- " plo.PerCon_9_10_Notes_c " +
- " else " +
- " '' " +
- " end " +
- " as Notes, " +
- " plo.ExpirationDate as ExpirationDate, " +
- " plo.lotnum as ExistingCast " +
- " from dbo.percon with (nolock) " +
- " left outer join dbo.partlot as plo on plo.company = dbo.percon.company and plo.ExpirationDate > GetDate() and ( plo.percon_1_2_c = PerConID or plo.percon_3_4_c = PerConID or plo.percon_5_6_c = PerConID or plo.percon_7_8_c = PerConID or plo.percon_9_10_c = PerConID) " +
- " where dbo.percon.company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and dbo.percon.PerConId = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " order by dbo.percon.perconid, ExistingCast ";
- if ( ((Ice.Core.Session)oTrans.Session).CompanyID != "200" )
- {
- select = " select pc.PerConID as PerConID, pc.FirstName, pc.LastName, pc.DOB_c as DOB, pc.EmployeeNum_c as EmployeeNum, pc.CorpName as Company, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " '1' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " '3' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " '5' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " '7' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " '9' " +
- " else " +
- " '' " +
- " end as RightMould, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " '2' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " '4' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " '6' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " '8' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " '10' " +
- " else " +
- " '' " +
- " end as LeftMould, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " pl.lotnum + '1-2' " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " pl.lotnum + '3-4' " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " pl.lotnum + '5-6' " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " pl.lotnum + '7-8' " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " pl.lotnum + '9-10' " +
- " else " +
- " '' " +
- " end as SerialNo, " +
- " case when pl.percon_1_2_c = gpc.PerConID then " +
- " pl.PerCon_1_2_Notes_c " +
- " when pl.percon_3_4_c = gpc.PerConID then " +
- " pl.PerCon_3_4_Notes_c " +
- " when pl.percon_5_6_c = gpc.PerConID then " +
- " pl.PerCon_5_6_Notes_c " +
- " when pl.percon_7_8_c = gpc.PerConID then " +
- " pl.PerCon_7_8_Notes_c " +
- " when pl.percon_9_10_c = gpc.PerConID then " +
- " pl.PerCon_9_10_Notes_c " +
- " else " +
- " '' " +
- " end as Notes , " +
- " pl.ExpirationDate as ExpirationDate, " +
- " pl.lotnum as ExistingCast " +
- " from dbo.percon as pc with (nolock) " +
- " join erp.glbpercon as gpc on '200' = gpc.company and gpc.GlbCompany = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and gpc.glbperconid = pc.perconid " +
- " left outer join dbo.PartLot as pl with (nolock)on pl.company = gpc.company and pl.expirationdate > Getdate() and ( (pl.percon_1_2_c = gpc.PerConID and gpc.perconid > 0 ) or " +
- " (pl.percon_3_4_c = gpc.PerConID and gpc.perconid > 0 ) or (pl.percon_5_6_c = gpc.PerConID and gpc.perconid > 0 ) or ( pl.percon_7_8_c = gpc.PerConID and gpc.perconid > 0 ) or ( pl.percon_9_10_c = gpc.PerConID and gpc.perconid > 0 ) ) " +
- " where pc.company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and pc.PerConId = " + edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["PerCon_c"].ToString() + " order by pc.perconid, pl.lotnum";
- }
- // MessageBox.Show("2511");
- // txtQuery.Text += "2511***********************************************2511\n\n" + select;
- LaunchSearch(select, true);
- }
- /*
- private void OrderDtl_AfterRowChange(EpiRowChangedArgs args)
- {
- // suspect this code will never be called so commenting it out and leaving a message for the user
- // ** Argument Properties and Uses **
- // args.CurrentView.dataView[args.CurrentRow]["FieldName"]
- // args.LastRow, args.CurrentRow, args.CurrentView
- // Add Event Handler Code
- //MessageBox.Show("OrderDtl_AfterRowChange");
- //MessageBox.Show(args.ToString());
- //MessageBox.Show(args.CurrentView.dataView[args.CurrentRow]["PartNum"].ToString());
- string filter_GrYeWh = "10001N 10001R 10002N 10002R 10003N 10003R 10004N 10004R 10005N 10005R 10006N 10006R 10007N 10007R 10008N 10008R 10009N 10009R 10010N 10010R " +
- "10011N 10011R 10012N 10012R 10013N 10013R 10014N 10014R 10015N 10015R 10016N 10016R 10017N 10017R 10018N 10018R 10037N 10037R 10038N 10038R 10039N 10039R 10048N " +
- "10048R 10049N 10049R 10050N 10050R 10051N 10051R 10052N 10052R 10053N 10053R 10054N 10054R 10055N 10055R 10056N 10056R 10057N 10057R 10068N 10068R 10069N 10069R " +
- "10070N 10070R 10071N 10071R 10073N 10073R 10074N 10074R 10075N 10075R 10076N 10076R 10077N 10077R 10078N 10078R 10079N 10079R 10080N 10080R 10100N 10100R 10101N " +
- "10101R 10102N 10102R 12001N 12001R 12009R 12010N 12010R 12012N 12012R 12013N 12013R 12022N 12022R 13005N 13005R 14002N 14002R 14005N 14005R 11005N 11005R 11016N 11016R 10040N " +
- "10040R 10041N 10041R 10042N 10042R 10072N 10072R 10094N 10094R 10095N 10095R 10096N 10096R 10097N 10097R 10098N 10098R 10099N 10099R";
- string filter_musician = "11001N 11001R 11002N 11002R 11003N 11003R 11004N 11004R 11018N 11018R 11019N 11019R 11020N 11020R 11021N 11021R";
- string filter_none = "10019N 10019R 10020N 10020R 10021N 10021R 10022N 10022R 10023N 10023R 10024N 10024R 10025N 10025R 10026N 10026R 10027N 10027R 10028N 10028R " +
- "10029N 10029R 10030N 10030R 10031N 10031R 10032N 10032R 10033N 10033R 10034N 10034R 10035N 10035R 10036N 10036R 10058N 10058R 10059N 10059R 10060N 10060R " +
- "10061N 10061R 10062N 10062R 10063N 10063R 10064N 10064R 10065N 10065R 10066N 10066R 10067N 10067R 10081N 10081R 10082N 10082R 10083N 10083R 10084N 10084R " +
- "10086N 10086R 10087N 10087R 10088N 10088R 10089N 10089R 10090N 10090R 10091N 10091R 10092N 10092R 10093N 10093R 11007N 11007R 11010N 11010R 11011N 11011R " +
- "11012N 11012R 11013N 11013R 11014N 11014R 11015N 11015R 12006N 12006R 12007N 12007R 12008N 12008R 12009N 12011N 12011R 12014 12014K 12015 " +
- "12015K 12016 12016K 12017 12017K 12018 12018K 12019 12019K 12020 12021 12031N 12031R 12032N 12032R 12041N 12041R 13001N 13001R 13002N 13002R 13003N 13003R " +
- "13004N 13004R 13006N 13006R 13007N 13007R 13008N 13008R 13009N 13009R 13010N 13010R 13011N 13011R 13012N 13012R 13013N 13013R 13014N 13014R 13015N 13015R " +
- "13016N 13016R 13017N 13017R 13018N 13018R 13019N 13019R 14001N 14001R 14003N 14003R 14004N 14004R 11006N 11006R 11017N 11017R 10045N 10045R 10046N 10046R " +
- "10085N 10085R 12005N 12005R";
- string[] filters;
- if (filter_GrYeWh.IndexOf(args.CurrentView.dataView[args.CurrentRow]["PartNum"].ToString()) > -1)
- {
- filters = new string[3] {"Green", "Yellow", "White"};
- }
- else if (filter_musician.IndexOf(args.CurrentView.dataView[args.CurrentRow]["PartNum"].ToString()) > -1)
- {
- filters = new string[2] {"ER9", "ER15"};
- }
- else
- {
- filters = new string [0] {};
- }
- //Populate the Filter dropdown
- SetGridDropDown(grdDtlList, "Filter_c", filters);
- //standard colors are blk, blu, cle, grn, org, pur, red, safT tan, Teal, wht, yel, pink
- string colour_standard = "10001N 10001R 10002N 10002R 10003N 10003R 10004N 10004R 10005N 10005R 10006N 10006R 10007N 10007R 10008N 10008R 10009N 10009R 10010N " +
- "10010R 10011N 10011R 10012N 10012R 10013N 10013R 10014N 10014R 10015N 10015R 10016N 10016R 10017N 10017R 10018N 10018R 10037N 10037R 10038N 10038R 10039N " +
- "10039R 10048N 10048R 10049N 10049R 10050N 10050R 10051N 10051R 10052N 10052R 10053N 10053R 10054N 10054R 10055N 10055R 10056N 10056R 10057N 10057R 10068N " +
- "10068R 10069N 10069R 10070N 10070R 10071N 10071R 10073N 10073R 10074N 10074R 10075N 10075R 10076N 10076R 10077N 10077R 10078N 10078R 10079N 10079R 10080N " +
- "10080R 10100N 10100R 10101N 10101R 10102N 10102R 12009R 12010N 12010R 12012N 12012R 12013N 12013R 12022N 12022R 13005N 13005R 14002N 14002R 14005N 14005R " +
- "11001N 11001R 11002N 11002R 11003N 11003R 11004N 11004R 11018N 11018R 11019N 11019R 11020N 11020R 11021N 11021R 10019N 10019R 10020N 10020R 10021N 10021R " +
- "10022N 10022R 10023N 10023R 10024N 10024R 10025N 10025R 10026N 10026R 10027N 10027R 10028N 10028R 10029N 10029R 10030N 10030R 10031N 10031R 10032N 10032R " +
- "10033N 10033R 10034N 10034R 10035N 10035R 10036N 10036R 10058N 10058R 10059N 10059R 10060N 10060R 10061N 10061R 10062N 10062R 10063N 10063R 10064N 10064R " +
- "10065N 10065R 10066N 10066R 10067N 10067R 10081N 10081R 10082N 10082R 10083N 10083R 10084N 10084R 10086N 10086R 10087N 10087R 10088N 10088R 10089N 10089R " +
- "10090N 10090R 10091N 10091R 10092N 10092R 10093N 10093R 11007N 11007R 11010N 11010R 11011N 11011R 11012N 11012R 11013N 11013R 11014N 11014R 11015N 11015R " +
- "12001N 12001R 12006N 12006R 12007N 12007R 12008N 12008R 12009N 12011N 12011R 12014 12014K 12015 12015K 12016 12016K 12017 12017K 12018 12018K 12019 12019K " +
- "12020 12021 12031N 12031R 12032N 12032R 12041N 12041R 13001N 13001R 13002N 13002R 13003N 13003R 13004N 13004R 13006N 13006R 13007N 13007R 13008N 13008R " +
- "13009N 13009R 13010N 13010R 13011N 13011R 13012N 13012R 13013N 13013R 13014N 13014R 13015N 13015R 13016N 13016R 13017N 13017R 13018N 13018R 13019N 13019R " +
- "14001N 14001R 14003N 14003R 14004N 14004R";
- string colour_standard_plus_GID = "11005N 11005R 11016N 11016R 11006N 11006R 11017N 11017R";
- string colour_standard_plus_grey = "10040N 10040R 10041N 10041R 10042N 10042R 10072N 10072R 10094N 10094R 10095N 10095R 10096N 10096R 10097N 10097R 10098N 10098R " +
- "10099N 10099R 10045N 10045R 10046N 10046R 10085N 10085R 12005N 12005R";
- string[] colors;
- if (colour_standard.IndexOf(args.CurrentView.dataView[args.CurrentRow]["PartNum"].ToString()) > -1)
- {
- colors = new string[13] {"Black", "Blue", "Clear", "Green", "Orange", "Purple", "Red", "SafT", "Tan", "Teal", "White", "Yellow", "Pink" };
- }
- else if (colour_standard_plus_GID.IndexOf(args.CurrentView.dataView[args.CurrentRow]["PartNum"].ToString()) > -1)
- {
- colors = new string[14] {"Black", "Blue", "Clear", "Green", "Orange", "Purple", "Red", "SafT", "Tan", "Teal", "White", "Yellow", "Pink", "GID" };
- }
- else if (colour_standard_plus_grey .IndexOf(args.CurrentView.dataView[args.CurrentRow]["PartNum"].ToString()) > -1)
- {
- colors = new string[14] {"Black", "Blue", "Clear", "Green", "Orange", "Purple", "Red", "SafT", "Tan", "Teal", "White", "Yellow", "Pink", "Grey" };
- }
- else
- {
- colors = new string [0] {};
- }
- //Populate the Colour dropdown
- SetGridDropDown(grdDtlList, "Colour_c", colors);
- }
- */
- private void OrderDtl_AfterFieldChange(object sender, DataColumnChangeEventArgs args)
- {
- // ** Argument Properties and Uses **
- // args.Row["FieldName"]
- // args.Column, args.ProposedValue, args.Row
- // Add Event Handler Code
- try
- {
- switch (args.Column.ColumnName)
- {
- case "PerConLastName_c":
- case "PerConFirstName_c":
- case "PerConDOB_c":
- //case "EmployeeNum_c":
- // MessageBox.Show("629>" + args.ProposedValue.ToString() + "<>" + args.Row["EmployeeNum_c"].ToString() + "<>" + args.Column.ColumnName);
- //case "PerConCorpName_c":
- // if ( m_copying == false && args.Row["PerConDOB_c"] != System.DBNull.Value && args.Row["PerConLastName_c"].ToString().Length > 0 && args.Row["PerConFirstName_c"].ToString().Length > 0 )
- if ( m_copying == false && args.Row["PerConLastName_c"].ToString().Length > 0 && args.Row["PerConFirstName_c"].ToString().Length > 0 )
- {
- // MessageBox.Show("634>");
- if ( args.Row["PerConDOB_c"] != System.DBNull.Value )
- {
- // MessageBox.Show("637>");
- if ( CheckContactExists(args.Row["PerConFirstName_c"].ToString(),args.Row["PerConLastName_c"].ToString(),Convert.ToDateTime(args.Row["PerConDOB_c"]), Convert.ToInt32(edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["CustNum"])) == false )
- {
- // MessageBox.Show("640>");
- CreateNewContact(args.Row["PerConFirstName_c"].ToString(),args.Row["PerConLastName_c"].ToString(),args.Row["PerConDOB_c"],args.Row["EmployeeNum_c"].ToString(),Convert.ToString(edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["CustomerName"]), Convert.ToInt32(edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["CustNum"]));
- }
- else
- {
- //MessageBox.Show("645>");
- UpdateContact(Convert.ToInt32(args.Row["PerCon_c"]), args.Row["EmployeeNum_c"].ToString(), Convert.ToString(edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["CustomerName"]), Convert.ToInt32(edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["CustNum"]));
- }
- }
- }
- break;
- case "SalesUM":
- //Reorders are automatically populated as pairs, this should catch if it is then changed to Left or Right
- if (args.Row["PartNum"].ToString().ToUpper().EndsWith("R"))
- {
- string salesUM = edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["SalesUM"].ToString().Trim().ToLower();
- if ( salesUM == "pr" || salesUM == "right" || salesUM == "ea" )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_DspMouldRight_c"] = edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_MouldRight_c"];
- }
- else
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_DspMouldRight_c"] = "";
- }
- if ( salesUM == "pr" || salesUM == "left" || salesUM == "ea" )
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_DspMouldLeft_c"] = edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_MouldLeft_c"];
- }
- else
- {
- edvOrderDtl.dataView.Table.Rows[edvOrderDtl.Row]["CPE_DspMouldLeft_c"] = "";
- }
- }
- break;
- case "PerCon_c":
- case "PartNum":
- // set revision to latest approved for the Site selected
- string latestRev;
- if ( GetLatestRev(args.Row["PartNum"].ToString(), edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["OrderSite_c"].ToString(), out latestRev))
- {
- args.Row["RevisionNum"] = latestRev;
- }
- // set price list from header
- if ( !string.IsNullOrEmpty(edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["HeaderPriceList_c"].ToString()) )
- {
- args.Row["OverridePriceList"] = true;
- args.Row["BreakListCode"] = edvOrderHed.dataView.Table.Rows[edvOrderHed.Row]["HeaderPriceList_c"];
- }
- // load the available colours and filters for this part //greg
- //MessageBox.Show(args.Row["PartNum"].ToString() + "-c");
- string filter_GrYeWh = "10001N 10001R 10002N 10002R 10003N 10003R 10004N 10004R 10005N 10005R 10006N 10006R 10007N 10007R 10008N 10008R 10009N 10009R 10010N 10010R " +
- "10011N 10011R 10012N 10012R 10013N 10013R 10014N 10014R 10015N 10015R 10016N 10016R 10017N 10017R 10018N 10018R 10037N 10037R 10038N 10038R 10039N 10039R 10048N " +
- "10048R 10049N 10049R 10050N 10050R 10051N 10051R 10052N 10052R 10053N 10053R 10054N 10054R 10055N 10055R 10056N 10056R 10057N 10057R 10068N 10068R 10069N 10069R " +
- "10070N 10070R 10071N 10071R 10073N 10073R 10074N 10074R 10075N 10075R 10076N 10076R 10077N 10077R 10078N 10078R 10079N 10079R 10080N 10080R 10100N 10100R 10101N " +
- "10101R 10102N 10102R 10103N 10103R 12001N 12001R 12009R 12010N 12010R 12012N 12012R 12013N 12013R 12022N 12022R 13005N 13005R 14002N 14002R 14005N 14005R 11005N 11005R 11016N 11016R 10040N " +
- "10040R 10041N 10041R 10042N 10042R 10072N 10072R 10094N 10094R 10095N 10095R 10096N 10096R 10097N 10097R 10098N 10098R 10099N 10099R";
- string filter_musician = "11001N 11001R 11002N 11002R 11003N 11003R 11004N 11004R 11018N 11018R 11019N 11019R 11020N 11020R 11021N 11021R";
- string filter_none = "10019N 10019R 10020N 10020R 10021N 10021R 10022N 10022R 10023N 10023R 10024N 10024R 10025N 10025R 10026N 10026R 10027N 10027R 10028N 10028R " +
- "10029N 10029R 10030N 10030R 10031N 10031R 10032N 10032R 10033N 10033R 10034N 10034R 10035N 10035R 10036N 10036R 10058N 10058R 10059N 10059R 10060N 10060R " +
- "10061N 10061R 10062N 10062R 10063N 10063R 10064N 10064R 10065N 10065R 10066N 10066R 10067N 10067R 10081N 10081R 10082N 10082R 10083N 10083R 10084N 10084R " +
- "10086N 10086R 10087N 10087R 10088N 10088R 10089N 10089R 10090N 10090R 10091N 10091R 10092N 10092R 10093N 10093R 11007N 11007R 11010N 11010R 11011N 11011R " +
- "11012N 11012R 11013N 11013R 11014N 11014R 11015N 11015R 12006N 12006R 12007N 12007R 12008N 12008R 12009N 12011N 12011R 12014 12014K 12015 " +
- "12015K 12016 12016K 12017 12017K 12018 12018K 12019 12019K 12020 12021 12031N 12031R 12032N 12032R 12041N 12041R 13001N 13001R 13002N 13002R 13003N 13003R " +
- "13004N 13004R 13006N 13006R 13007N 13007R 13008N 13008R 13009N 13009R 13010N 13010R 13011N 13011R 13012N 13012R 13013N 13013R 13014N 13014R 13015N 13015R " +
- "13016N 13016R 13017N 13017R 13018N 13018R 13019N 13019R 14001N 14001R 14003N 14003R 14004N 14004R 11006N 11006R 11017N 11017R 10045N 10045R 10046N 10046R " +
- "10085N 10085R 12005N 12005R";
- string[] filters;
- //MessageBox.Show(args.Row["Filter_c"].ToString());
- if (filter_GrYeWh.IndexOf(args.Row["PartNum"].ToString()) > -1)
- {
- //Set the available filter colours
- filters = new string[3] {"Green", "Yellow", "White"};
- //Test that the current filter colour is one of the available colours. If not, notify the user and clear it.
- if (args.Row["Filter_c"].ToString() != "")
- {
- bool filterfound = false;
- foreach (string fil in filters)
- {
- if (fil == args.Row["Filter_c"].ToString())
- {
- filterfound = true;
- break;
- }
- }
- if (filterfound)
- {
- //MessageBox.Show(args.Row["Filter_c"].ToString() + " is in the newly populated filter dropdown.");
- }
- else
- {
- MessageBox.Show("The previous filter colour is not allowed for new Part number. Please select a new one.");
- args.Row["Filter_c"] = "";
- }
- }
- }
- else if (filter_musician.IndexOf(args.Row["PartNum"].ToString()) > -1)
- {
- //Set the available filter colours
- filters = new string[2] {"ER9", "ER15"};
- //Test that the current filter colour is one of the available colours. If not, notify the user and clear it.
- if (args.Row["Filter_c"].ToString() != "")
- {
- bool filterfound = false;
- foreach (string fil in filters)
- {
- if (fil == args.Row["Filter_c"].ToString())
- {
- filterfound = true;
- break;
- }
- }
- if (filterfound)
- {
- //MessageBox.Show(args.Row["Filter_c"].ToString() + " is in the newly populated filter dropdown.");
- }
- else
- {
- MessageBox.Show("The previous filter colour is not allowed for new Part number. Please select a new one.");
- args.Row["Filter_c"] = "";
- }
- }
- }
- else
- {
- filters = new string [0] {};
- args.Row["Filter_c"] = "";
- }
- //Populate the Filter dropdown
- SetGridDropDown(grdDtlList, "Filter_c", filters);
- //standard colors are blk, blu, cle, grn, org, pur, red, safT tan, Teal, wht, yel, pink
- string colour_standard = "10001N 10001R 10002N 10002R 10003N 10003R 10004N 10004R 10005N 10005R 10006N 10006R 10007N 10007R 10008N 10008R 10009N 10009R 10010N " +
- "10010R 10011N 10011R 10012N 10012R 10013N 10013R 10014N 10014R 10015N 10015R 10016N 10016R 10017N 10017R 10018N 10018R 10037N 10037R 10038N 10038R 10039N " +
- "10039R 10048N 10048R 10049N 10049R 10050N 10050R 10051N 10051R 10052N 10052R 10053N 10053R 10054N 10054R 10055N 10055R 10056N 10056R 10057N 10057R 10068N " +
- "10068R 10069N 10069R 10070N 10070R 10071N 10071R 10073N 10073R 10074N 10074R 10075N 10075R 10076N 10076R 10077N 10077R 10078N 10078R 10079N 10079R 10080N " +
- "10080R 10100N 10100R 10101N 10101R 10102N 10102R 12009R 12010N 12010R 12012N 12012R 12013N 12013R 12022N 12022R 13005N 13005R 14002N 14002R 14005N 14005R " +
- "11001N 11001R 11002N 11002R 11003N 11003R 11004N 11004R 11018N 11018R 11019N 11019R 11020N 11020R 11021N 11021R 10019N 10019R 10020N 10020R 10021N 10021R " +
- "10022N 10022R 10023N 10023R 10024N 10024R 10025N 10025R 10026N 10026R 10027N 10027R 10028N 10028R 10029N 10029R 10030N 10030R 10031N 10031R 10032N 10032R " +
- "10033N 10033R 10034N 10034R 10035N 10035R 10036N 10036R 10058N 10058R 10059N 10059R 10060N 10060R 10061N 10061R 10062N 10062R 10063N 10063R 10064N 10064R " +
- "10065N 10065R 10066N 10066R 10067N 10067R 10081N 10081R 10082N 10082R 10083N 10083R 10084N 10084R 10086N 10086R 10087N 10087R 10088N 10088R 10089N 10089R " +
- "10090N 10090R 10091N 10091R 10092N 10092R 10093N 10093R 10103N 10103R 11007N 11007R 11010N 11010R 11011N 11011R 11012N 11012R 11013N 11013R 11014N 11014R 11015N 11015R " +
- "12001N 12001R 2006N 12006R 12007N 12007R 12008N 12008R 12009N 12011N 12011R 12014 12014K 12015 12015K 12016 12016K 12017 12017K 12018 12018K 12019 12019K " +
- "12020 12021 12031N 12031R 12032N 12032R 12041N 12041R 13001N 13001R 13002N 13002R 13003N 13003R 13004N 13004R 13006N 13006R 13007N 13007R 13008N 13008R " +
- "13009N 13009R 13010N 13010R 13011N 13011R 13012N 13012R 13013N 13013R 13014N 13014R 13015N 13015R 13016N 13016R 13017N 13017R 13018N 13018R 13019N 13019R " +
- "14001N 14001R 14003N 14003R 14004N 14004R";
- string colour_standard_plus_GID = "11005N 11005R 11016N 11016R 11006N 11006R 11017N 11017R";
- string colour_standard_plus_grey = "10040N 10040R 10041N 10041R 10042N 10042R 10072N 10072R 10094N 10094R 10095N 10095R 10096N 10096R 10097N 10097R 10098N 10098R " +
- "10099N 10099R 10045N 10045R 10046N 10046R 10085N 10085R 12005N 12005R";
- string colour_PartNum_NOT_Pink_Diamond_and_White_Diamond = "11016N 11016R 11017N 11017R 11005N 11005R 11006N 11006R 10100N 10100R 10101N 10101R 10102N 10102R 10103N 10103R 11001N 11001R 11004N 11004R";
- List<string> colorList = new List<string> {"Black", "Blue", "Clear", "Green", "Orange", "Purple", "Red", "SafT", "Tan", "Teal", "White", "Yellow", "Pink"};
- string currentColor = "";
- //if there's a current color selected, capture it for comparison later
- if (colour_standard.IndexOf(args.Row["PartNum"].ToString()) > -1)
- {}
- else if (colour_standard_plus_GID.IndexOf(args.Row["PartNum"].ToString()) > -1)
- {
- colorList.Add("GID");
- }
- else if (colour_standard_plus_grey.IndexOf(args.Row["PartNum"].ToString()) > -1)
- {
- colorList.Add("Grey");
- }
- //Check to see if the part num is one that does NOT have Pink Glitter or White Diamond as an option and add them accordingly
- if (colour_PartNum_NOT_Pink_Diamond_and_White_Diamond.IndexOf(args.Row["PartNum"].ToString()) == -1)
- {
- colorList.Add("White Diamond");
- colorList.Add("Pink Glitter");
- }
- //Test that the current colour is one of the available colours. If not, notify the user and clear it.
- if (currentColor != "")
- {
- bool colourfound = false;
- foreach (string col in colorList)
- {
- if (col == args.Row["Colour_c"].ToString())
- {
- colourfound = true;
- break;
- }
- }
- if (!colourfound)
- {
- MessageBox.Show("The previous colour is not allowed for new Part number. Please select a new one.");
- args.Row["Colour_c"] = "";
- }
- }
- //Populate the Colour dropdown
- SetGridDropDown(grdDtlList, "Colour_c", colorList);
- // if part ends with an N and ther PerCon_c already has a line for a part change the last character to an R
- if ( Convert.ToInt32(args.Row["PerCon_c"]) > 0 && args.Row["PartNum"].ToString().ToUpper().EndsWith("N"))
- {
- DataRow[] rowsInThisOrder = edvOrderDtl.dataView.Table.Select("PerCon_c = " + args.Row["PerCon_c"].ToString().Trim() + " and OrderNum = " + args.Row["OrderNum"].ToString().Trim() + " and OrderLine <> " + args.Row["OrderLine"].ToString().Trim());
- // see if there is only one N part num
- bool bHasNewPartRow = false;
- string nLine = " ";
- foreach ( DataRow nRow in rowsInThisOrder )
- {
- if ( nRow["PartNum"].ToString().ToUpper().EndsWith("N") )
- {
- bHasNewPartRow = true;
- nLine += nRow["OrderLine"].ToString() + " ";
- }
- }
- if ( bHasNewPartRow )
- {
- MessageBox.Show(args.Row["PerConFirstName_c"].ToString() + " " + args.Row["PerConLastName_c"].ToString() + " has a new part in line " + nLine);// + "\nSwitching part number to R.");
- //args.Row["PartNum"] = args.Row["PartNum"].ToString().Remove(args.Row["PartNum"].ToString().Length - 1, 1) + "R";
- }
- }
- else if ( Convert.ToInt32(args.Row["PerCon_c"]) > 0 && args.Row["PartNum"].ToString().ToUpper().EndsWith("R"))
- {
- int newValue = ChangeContact(false, Convert.ToInt32(args.Row["PerCon_c"]));
- if ( newValue != Convert.ToInt32(args.Row["PerCon_c"]) )
- {
- args.Row["PerCon_c"] = newValue;
- }
- //string select = "select lotnum as 'Cast_Number', ExpirationDate as 'Expiration-Date' from erp.partlot where company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and lotnum in (select distinct(pl.lotnum) from erp.partlot as pl with (nolock) join dbo.PlantConfCtrl as pcc with (nolock) on pl.company = pcc.company and pl.partnum = pcc.CastPartNum_c and pcc.plant = '" + ((Ice.Core.Session)oTrans.Session).PlantID + "' and pcc.company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' join dbo.orderdtl as od with (nolock) on od.company = pl.company and pl.lotnum = od.CPE_Cast_c join dbo.PerCon as pc with (nolock) on pc.company = od.company and pc.PerConID = od.PerCon_c where pc.PerConID = " + args.Row["PerCon_c"].ToString() + " and pl.expirationdate > GETDATE())";
- string select = "select lotnum as 'Cast_Number', ExpirationDate as 'Expiration-Date', case when PerCon_1_2_c = " + args.Row["PerCon_c"].ToString() + " then PerCon_1_2_Notes_c when PerCon_3_4_c = " + args.Row["PerCon_c"].ToString() + " then PerCon_3_4_Notes_c when PerCon_5_6_c = " + args.Row["PerCon_c"].ToString() + " then PerCon_5_6_Notes_c when PerCon_7_8_c = " + args.Row["PerCon_c"].ToString() + " then PerCon_7_8_Notes_c when PerCon_9_10_c = " + args.Row["PerCon_c"].ToString() + " then PerCon_9_10_Notes_c else '' end as Notes from dbo.partlot where company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and expirationdate > GETDATE() and ( PerCon_1_2_c = " + args.Row["PerCon_c"].ToString() + " or PerCon_3_4_c = " + args.Row["PerCon_c"].ToString() + " or PerCon_5_6_c = " + args.Row["PerCon_c"].ToString() +" or PerCon_7_8_c = " + args.Row["PerCon_c"].ToString() +" or PerCon_9_10_c = " + args.Row["PerCon_c"].ToString() + ")";
- select = "select lotnum as 'Cast_Number', ExpirationDate as 'Expiration-Date', case when PerCon_1_2_c = " + args.Row["PerCon_c"].ToString() + " then PerCon_1_2_Notes_c when PerCon_3_4_c = " + args.Row["PerCon_c"].ToString() + " then PerCon_3_4_Notes_c when PerCon_5_6_c = " + args.Row["PerCon_c"].ToString() + " then PerCon_5_6_Notes_c when PerCon_7_8_c = " + args.Row["PerCon_c"].ToString() + " then PerCon_7_8_Notes_c when PerCon_9_10_c = " + args.Row["PerCon_c"].ToString() + " then PerCon_9_10_Notes_c else '' end as Notes , " +
- " case when PerCon_1_2_c = " + args.Row["PerCon_c"].ToString() + " then '1' " + " when PerCon_3_4_c = " + args.Row["PerCon_c"].ToString() + " then '3' " + " when PerCon_5_6_c = " + args.Row["PerCon_c"].ToString() + " then '5' " + " when PerCon_7_8_c = " + args.Row["PerCon_c"].ToString() + " then '7' " + " when PerCon_9_10_c = " + args.Row["PerCon_c"].ToString() + " then '9' else '' end as RightMould, " +
- " case when PerCon_1_2_c = " + args.Row["PerCon_c"].ToString() + " then '2' when PerCon_3_4_c = " + args.Row["PerCon_c"].ToString() + " then '4' when PerCon_5_6_c = " + args.Row["PerCon_c"].ToString() + " then '6' when PerCon_7_8_c = " + args.Row["PerCon_c"].ToString() + " then '8' when PerCon_9_10_c = " + args.Row["PerCon_c"].ToString() + " then '10' else '' end as LeftMould, " +
- " case when PerCon_1_2_c = " + args.Row["PerCon_c"].ToString() + " then lotnum + '1-2' " +
- " when PerCon_3_4_c = " + args.Row["PerCon_c"].ToString() + " then lotnum + '3-4' " +
- " when PerCon_5_6_c = " + args.Row["PerCon_c"].ToString() + " then lotnum + '5-6' " +
- " when PerCon_7_8_c = " + args.Row["PerCon_c"].ToString() + " then lotnum + '7-8' " +
- "when PerCon_9_10_c = " + args.Row["PerCon_c"].ToString() + " then lotnum + '9-10' else '' end as SerialNo " +
- " from dbo.partlot where company = '" + ((Ice.Core.Session)oTrans.Session).CompanyID + "' and expirationdate > GETDATE() and ( PerCon_1_2_c = " + args.Row["PerCon_c"].ToString() + " or PerCon_3_4_c = " + args.Row["PerCon_c"].ToString() + " or PerCon_5_6_c = " + args.Row["PerCon_c"].ToString() +" or PerCon_7_8_c = " + args.Row["PerCon_c"].ToString() +" or PerCon_9_10_c = " + args.Row["PerCon_c"].ToString() + ")";
- if ( ((Ice.Core.Session)oTrans.Session).CompanyID == "250" )
- {
- select = "select lotnum as 'Cast_Number', ExpirationDate as 'Expiration-Date', " +
- " case when PerCon_1_2_c = glb.perconid then '1' when PerCon_3_4_c = glb.perconid then '3' when PerCon_5_6_c = glb.perconid then '5' when PerCon_7_8_c = glb.perconid then '7' when PerCon_9_10_c = glb.perconid then '9' else '' end as RightMould, " +
- " case when PerCon_1_2_c = glb.perconid then '2' when PerCon_3_4_c = glb.perconid then '4' when PerCon_5_6_c = glb.perconid then '6' when PerCon_7_8_c = glb.perconid then '8' when PerCon_9_10_c = glb.perconid then '10' else '' end as LeftMould, " +
- " case when PerCon_1_2_c = glb.perconid then lotnum + '1-2' when PerCon_3_4_c = glb.perconid then lotnum + '3-4' when PerCon_5_6_c = glb.perconid then lotnum + '5-6' when PerCon_7_8_c = glb.perconid then lotnum + '7-8' when PerCon_9_10_c = glb.perconid then lotnum + '9-10' else '' end as SerialNo, case when PerCon_1_2_c = glb.perconid then PerCon_1_2_Notes_c when PerCon_3_4_c = glb.perconid then PerCon_3_4_Notes_c when PerCon_5_6_c = glb.perconid then PerCon_5_6_Notes_c when PerCon_7_8_c = glb.perconid then PerCon_7_8_Notes_c when PerCon_9_10_c = glb.perconid then PerCon_9_10_Notes_c else '' end as Notes from dbo.partlot as pl with (nolock) join erp.glbpercon as glb with (nolock) on pl.company = glb.company and glb.glbperconid = " + args.Row["PerCon_c"].ToString() + " and ( pl.PerCon_1_2_c = glb.perconid or pl.PerCon_3_4_c = glb.perconid or pl.PerCon_5_6_c = glb.perconid or pl.PerCon_7_8_c = glb.perconid or pl.PerCon_9_10_c = glb.perconid ) where pl.company = '200' and expirationdate > GETDATE() ";
- }
- // MessageBox.Show("869");
- // txtQuery.Text = select;
- LaunchCastSearch(select, false);
- }
- else
- {
- args.Row["CPE_Cast_c"] = "";
- }
- args.Row["PerConDropDown_c"] = args.Row["PerCon_c"];
- break;
- }
- }catch ( Exception ex )
- {
- MessageBox.Show("After field change: " + ex.Message);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement