コード例 #1
0
    private void edvCRMCall_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.Initialize))
        {
            if (edvCRMCall.CurrentDataRow != null)
            {
                if (edvCRMCall.CurrentDataRow["CallTypeCode"].ToString().ToLower().Contains("call"))
                {
                    if (points != null)
                    {
                        points.Enabled = true;
                    }
                }
                else
                {
                    if (points != null)
                    {
                        edvCRMCall.CurrentDataRow["Points_c"] = "0";
                        points.Enabled = false;
                    }
                }
            }
        }
    }
コード例 #2
0
ファイル: grn.cs プロジェクト: xdents/WebApplication3
    private static void edvRcvDtl_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.Initialize))
        {
            if ((args.Row > -1))
            {
                DynamicQueryAdapter adapterDynamicQuery = new DynamicQueryAdapter(oTrans);
                adapterDynamicQuery.BOConnect();

                adapterDynamicQuery.ExecuteByID("DMR");
                DataView TB2 = new DataView(adapterDynamicQuery.QueryResults.Tables["Results"]);

                TB2.RowFilter = "DMRHead_Company = '" + view.dataView[args.Row]["Company"].ToString() + "' AND DMRActn_PackSlip = '" + view.dataView[args.Row]["PackSlip"].ToString() + "' AND DMRActn_PackLine='" + view.dataView[args.Row]["PackLine"].ToString() + "'";

                txtUAIQty.Text   = Convert.ToString(Convert.ToDouble("0" + view.dataView[args.Row]["FailedQty"].ToString()) - Convert.ToDouble("0" + TB2.ToTable().Compute("Max(DMRActn_Quantity)", string.Empty).ToString()));
                txtFinalQty.Text = Convert.ToString(Convert.ToDouble("0" + view.dataView[args.Row]["PassedQty"].ToString()) + Convert.ToDouble("0" + view.dataView[args.Row]["FailedQty"].ToString()) - Convert.ToDouble("0" + TB2.ToTable().Compute("Max(DMRActn_Quantity)", string.Empty).ToString()));

                adapterDynamicQuery.Dispose();
            }
        }
    }
コード例 #3
0
ファイル: quote.cs プロジェクト: xdents/WebApplication3
    private void InitializeUD01Adapter()
    {
        // Create an instance of the Adapter.
        this._ud01Adapter = new UD01Adapter(this.oTrans);
        this._ud01Adapter.BOConnect();

        // Add Adapter Table to List of Views
        // This allows you to bind controls to the custom UD Table
        this._edvUD01            = new EpiDataView();
        this._edvUD01.dataView   = new DataView(this._ud01Adapter.UD01Data.UD01);
        this._edvUD01.AddEnabled = true;
        this._edvUD01.AddText    = "New UD01";
        if ((this.oTrans.EpiDataViews.ContainsKey("UD01View") == false))
        {
            this.oTrans.Add("UD01View", this._edvUD01);
        }

        // Initialize DataTable variable
        this.UD01_Column = this._ud01Adapter.UD01Data.UD01;

        // Initialize EpiDataView field.
        this._edvV_QuoteUpdateInfoCGVer1_1View3 = ((EpiDataView)(this.oTrans.EpiDataViews["V_QuoteUpdateInfoCGVer1_1View3"]));

        // Set the parent view / keys for UD child view
        string[] parentKeyFields = new string[1];
        string[] childKeyFields  = new string[1];
        parentKeyFields[0] = "QuoteHed_Checked1_c";
        childKeyFields[0]  = "Key1";
        this._edvUD01.SetParentView(this._edvV_QuoteUpdateInfoCGVer1_1View3, parentKeyFields, childKeyFields);

        if ((this.oTrans.PrimaryAdapter != null))
        {
            // this.oTrans.PrimaryAdapter.GetCurrentDataSet(Ice.Lib.Searches.DataSetMode.RowsDataSet).Tables.Add(this._edvUD01.dataView.Table.Clone())
        }
    }
コード例 #4
0
    private void GetLeadDistContact()
    {
        try
        {
            EpiDataView edvCustomer = ((EpiDataView)(this.oTrans.EpiDataViews["Distributor"]));
            DataRow     drCustomer  = edvCustomer.CurrentDataRow;
            if (drCustomer != null)
            {
                string distNum = drCustomer["CustNum"].ToString();

                CustCntAdapter adapterCustCnt = new CustCntAdapter(this.oTrans);
                adapterCustCnt.BOConnect();

                string        whereClause = "CustNum =  " + distNum + " AND LeadContact_c = true";
                SearchOptions opts        = new SearchOptions(SearchMode.AutoSearch);
                opts.NamedSearch.WhereClauses.Add("CustCnt", whereClause);

                bool    morePages     = false;
                DataSet dsLeadContact = adapterCustCnt.GetRows(opts, out morePages);
                if (dsLeadContact.Tables["CustCnt"].Rows.Count > 0)
                {
                    this.LeadDistributorContact.Text = dsLeadContact.Tables["CustCnt"].Rows[0]["Name"].ToString();
                }
            }
        } catch (System.Exception ex)
        {
            ExceptionBox.Show(ex);
        }
    }
コード例 #5
0
    public void InitializeCustomCode()
    {
        // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
        // Begin Wizard Added Variable Initialization

        // End Wizard Added Variable Initialization

        // Begin Wizard Added Custom Method Calls

        this.grdInput.InitializeLayout += new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(this.grdInput_InitializeLayout);
        this.btnProcesss.Click         += new System.EventHandler(this.btnProcesss_Click);
        this.btnClear.Click            += new System.EventHandler(this.btnClear_Click);
        // End Wizard Added Custom Method Calls
        dtInput.Columns.Add("Donor", typeof(string));
        dtInput.Columns.Add("OPO Name", typeof(string));
        dtInput.Columns.Add("OPO Donor Number", typeof(string));

        edvInput          = new EpiDataView();
        edvInput.dataView = dtInput.DefaultView;
        oTrans.Add("edvInput", edvInput);

        grdInput.EpiAllowPaste       = true;
        grdInput.EpiAllowPasteInsert = true;
        //grdInput.InsertNewRowAfterLastRow = true;

        builder = new StringBuilder();
        SetUpPB();

        this.worker                            = new BackgroundWorker();
        this.worker.DoWork                    += new DoWorkEventHandler(this.worker_DoWork);
        this.worker.ProgressChanged           += new ProgressChangedEventHandler(this.worker_ProgressChanged);
        this.worker.RunWorkerCompleted        += new RunWorkerCompletedEventHandler(this.worker_RunWorkerCompleted);
        this.worker.WorkerReportsProgress      = true;
        this.worker.WorkerSupportsCancellation = false;
    }
コード例 #6
0
ファイル: quote.cs プロジェクト: xdents/WebApplication3
    public void DestroyCustomCode()
    {
        // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
        // Begin Wizard Added Object Disposal

        this.BtnCheck2.Click -= new System.EventHandler(this.BtnCheck2_Click);
        this.BtnCheck1.Click -= new System.EventHandler(this.BtnCheck1_Click);
        this.BtnCheck3.Click -= new System.EventHandler(this.BtnCheck3_Click);
        if ((this._ud01Adapter != null))
        {
            this._ud01Adapter.Dispose();
            this._ud01Adapter = null;
        }
        this._edvUD01 = null;
        this._edvV_QuoteUpdateInfoCGVer1_1View3 = null;
        this.UD01_Column = null;
        this._Key1UD01   = null;
        this._Key2UD01   = null;
        this._Key3UD01   = null;
        this._Key4UD01   = null;
        this._Key5UD01   = null;
        this.baseToolbarsManager.ToolClick  -= new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.baseToolbarsManager_ToolClickForUD01);
        this.MainController.BeforeToolClick -= new Ice.Lib.Framework.BeforeToolClickEventHandler(this.MainController_BeforeToolClickForUD01);
        this.MainController.AfterToolClick  -= new Ice.Lib.Framework.AfterToolClickEventHandler(this.MainController_AfterToolClickForUD01);
        this.V_QuoteUpdateInfoCGVer1_1View3_Row.EpiRowChanged       -= new EpiRowChanged(this.V_QuoteUpdateInfoCGVer1_1View3_AfterRowChangeForUD01);
        this.V_QuoteUpdateInfoCGVer1_1View3_DataView.ListChanged    -= new ListChangedEventHandler(this.V_QuoteUpdateInfoCGVer1_1View3_DataView_ListChangedForUD01);
        this.V_QuoteUpdateInfoCGVer1_1View3_DataView                 = null;
        this.V_QuoteUpdateInfoCGVer1_1View3_Row.BeforeResetDataView -= new Ice.Lib.Framework.EpiDataView.BeforeResetDataViewDelegate(this.V_QuoteUpdateInfoCGVer1_1View3_BeforeResetDataViewForUD01);
        this.V_QuoteUpdateInfoCGVer1_1View3_Row.AfterResetDataView  -= new Ice.Lib.Framework.EpiDataView.AfterResetDataViewDelegate(this.V_QuoteUpdateInfoCGVer1_1View3_AfterResetDataViewForUD01);
        // End Wizard Added Object Disposal

        // Begin Custom Code Disposal

        // End Custom Code Disposal
    }
コード例 #7
0
 public Transaction()
 {
     this.reqHeadView     = new EpiDataView(true, "NewRequisition", "New");
     this.reqDetailView   = new EpiDataView(true, "NewLine", "New");
     this.reqHeadListView = new EpiDataView();
     this.partXRefUOMCode = "";
 }
コード例 #8
0
 private void custDataView_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))
     {
         DataRow currentCustomer = this.custDataView.CurrentDataRow;
         if (this.custDataView.CurrentDataRow != null)
         {
             this.btnNextCustID.Enabled = true;
             if (this.custDataView.CurrentDataRow.RowState.ToString() == "Added")
             {
                 this.custDataView.CurrentDataRow["CheckDuplicatePO"] = true;
                 this.custDataView.CurrentDataRow["WebCustomer"]      = true;
                 this.custDataView.CurrentDataRow["AllowOTS"]         = true;
                 this.custDataView.CurrentDataRow["AllowShipTo3"]     = true;
                 this.custDataView.CurrentDataRow["ECCType"]          = "B";
             }
         }
         else
         {
             this.btnNextCustID.Enabled = false;
         }
     }
     else if ((args.NotifyType == EpiTransaction.NotifyType.Initialize))
     {
         GetLeadDistContact();
     }
 }
コード例 #9
0
        private void InitializeCustXPrtAdapter()
        {
            // Create an instance of the Adapter.
            this.cxad = new CustomerPartXRefAdapter(this.oTrans);
            this.cxad.BOConnect();

            // Add Adapter Table to List of Views
            // This allows you to bind controls to the custom UD Table
            this._edvCustXPrt          = new EpiDataView();
            this._edvCustXPrt.dataView = new DataView(this.cxad.CustomerPartXRefData.CustXPrt);
            if ((this.oTrans.EpiDataViews.ContainsKey("CustXPrtView") == false))
            {
                this.oTrans.Add("CustXPrtView", this._edvCustXPrt);
            }

            // Initialize DataTable variable
            this.CustXPrt_Column = this.cxad.CustomerPartXRefData.CustXPrt;

            // Initialize EpiDataView field.
            this._edvPart = ((EpiDataView)(this.oTrans.EpiDataViews["Part"]));

            // Set the parent view / keys for UD child view
            string[] parentKeyFields = new string[1];
            string[] childKeyFields  = new string[1];
            parentKeyFields[0] = "PartNum";
            childKeyFields[0]  = "PartNum";
            this._edvCustXPrt.SetParentView(this._edvPart, parentKeyFields, childKeyFields);
        }
コード例 #10
0
        private void SetExtendedProperties()
        {
            // Begin Wizard Added EpiDataView Initialization
            EpiDataView edvCustXPrtView = ((EpiDataView)(this.oTrans.EpiDataViews["CustXPrtView"]));

            // End Wizard Added EpiDataView Initialization

            // Begin Wizard Added Conditional Block
            if (edvCustXPrtView.dataView.Table.Columns.Contains("XPartNum"))
            {
                // Begin Wizard Added ExtendedProperty Settings: edvCustXPrtView-XPartNum
                edvCustXPrtView.dataView.Table.Columns["XPartNum"].ExtendedProperties["ReadOnly"] = true;
                // End Wizard Added ExtendedProperty Settings: edvCustXPrtView-XPartNum
            }
            if (edvCustXPrtView.dataView.Table.Columns.Contains("XRevisionNum"))
            {
                // Begin Wizard Added ExtendedProperty Settings: edvCustXPrtView-XRevisionNum
                edvCustXPrtView.dataView.Table.Columns["XRevisionNum"].ExtendedProperties["ReadOnly"] = true;
                // End Wizard Added ExtendedProperty Settings: edvCustXPrtView-XRevisionNum
            }
            if (edvCustXPrtView.dataView.Table.Columns.Contains("PartDescription"))
            {
                // Begin Wizard Added ExtendedProperty Settings: edvCustXPrtView-PartDescription
                edvCustXPrtView.dataView.Table.Columns["PartDescription"].ExtendedProperties["ReadOnly"] = true;
                // End Wizard Added ExtendedProperty Settings: edvCustXPrtView-PartDescription
            }
            if (edvCustXPrtView.dataView.Table.Columns.Contains("CustNumCustID"))
            {
                // Begin Wizard Added ExtendedProperty Settings: edvCustXPrtView-CustNumCustID
                edvCustXPrtView.dataView.Table.Columns["CustNumCustID"].ExtendedProperties["ReadOnly"] = true;
                // End Wizard Added ExtendedProperty Settings: edvCustXPrtView-CustNumCustID
            }
            // End Wizard Added Conditional Block
        }
コード例 #11
0
    private void btnPrint_Click(object sender, System.EventArgs args)
    {
        // ** Place Event Handling Code Here **
        txtNumberInvoicesSent.Value = 0;
        if (dtInput.Rows.Count < 1)
        {
            MessageBox.Show("No Invoices Selected for Print");
            return;
        }
        EpiDataView dvRP   = (EpiDataView)oTrans.EpiDataViews["ReportParam"];
        string      workID = oTrans.WorkStationID.ToString();

        try {
            foreach (DataRow dr in dtInput.Rows)
            {
                dvRP.dataView[dvRP.Row]["InvoiceNum"]    = dr["Invoice"];
                dvRP.dataView[dvRP.Row]["AutoAction"]    = "SSRSPREVIEW";
                dvRP.dataView[dvRP.Row]["WorkstationID"] = workID;
                dr["Printed"] = true;
                oTrans.Update();
                oTrans.SubmitToAgent("SystemTaskAgent", 0, 0);
                Thread.Sleep(500);
            }

            txtNumberInvoicesSent.Value = dtInput.Rows.Count;
            oTrans.PushDisposableStatusText("Reports Submitted for Preview...", true);
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message);
        }
    }
コード例 #12
0
        private static void DownloadCustomization(CommandLineParams o, Session epiSession)
        {
            EpiTransaction epiTransaction = new EpiTransaction(new ILauncher(epiSession));

            Ice.UI.App.CustomizationMaintEntry.Transaction            oTrans   = new Ice.UI.App.CustomizationMaintEntry.Transaction(epiTransaction);
            Ice.UI.App.CustomizationMaintEntry.CustomizationMaintForm custData = new Ice.UI.App.CustomizationMaintEntry.CustomizationMaintForm(oTrans);

            oTrans = (Ice.UI.App.CustomizationMaintEntry.Transaction)custData.GetType().GetField("trans", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(custData);

            SearchOptions opts = new SearchOptions(SearchMode.ShowDialog)
            {
                DataSetMode         = DataSetMode.RowsDataSet,
                SelectMode          = SelectMode.SingleSelect,
                PreLoadSearchFilter = "TypeCode = 'Customization'"
            };

            oTrans.InvokeSearch(opts);
            EpiDataView edvxxDef = (EpiDataView)oTrans.EpiDataViews["xxxDef"];

            if (edvxxDef.Row >= 0)
            {
                GenXDataDataSet.XXXDefRow r = (GenXDataDataSet.XXXDefRow)edvxxDef.CurrentDataRow;
                o.Company     = r.Company;
                o.CSGCode     = r.CGCCode;
                o.Key1        = r.Key1;
                o.Key2        = r.Key2;
                o.Key3        = r.Key3;
                o.LayerType   = r.TypeCode;
                o.ProductType = r.ProductID;
            }
        }
コード例 #13
0
    private static void edvPart_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.Initialize))
        {
            btnGenWH.ReadOnly = true;

            if ((args.Row > -1))
            {
                btnGenWH.ReadOnly = false;
                if ((view.dataView[args.Row]["ClassID"].ToString() == "FG") || (view.dataView[args.Row]["ClassID"].ToString() == "SFG"))
                {
                    cbMType.ReadOnly = true;
                    cbFType.ReadOnly = false;
                }
                else if ((view.dataView[args.Row]["ClassID"].ToString() == "DM") || (view.dataView[args.Row]["ClassID"].ToString() == "IM") || (view.dataView[args.Row]["ClassID"].ToString() == "PK"))
                {
                    cbMType.ReadOnly = false;
                    cbFType.ReadOnly = true;
                }
                else
                {
                    cbMType.ReadOnly = true;
                    cbFType.ReadOnly = true;
                }
            }
        }
    }
コード例 #14
0
    private void oTrans_adapter_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":
            // DialogResult dialogResult = EpiMessageBox.Show("Cancel Update?", "Cancel", MessageBoxButtons.YesNo);
            // if ((dialogResult == DialogResult.Yes))
            // {
            //  args.Cancel = true;
            // } else
            // {
            //  DoSomethingElse();
            // }

            date = ((EpiDateTimeEditor)csm.GetNativeControlReference("58b174f5-b539-42ab-8e1c-1007c7b85541"));
            int length = date.Text.Length;
            if (length == 0)
            {
                custCredView = ((EpiDataView)(this.oTrans.EpiDataViews["Customer"]));
                custCredView.dataView[this.custCredView.Row]["LastCreditHold_c"] = DBNull.Value;
            }
            break;
        }
    }
コード例 #15
0
    private void SearchOnCustomerAdapterShowDialog()
    {
        // Wizard Generated Search Method
        // You will need to call this method from another method in custom code
        // For example, [Form]_Load or [Button]_Click

        bool   recSelected;
        string whereClause = string.Empty;

        System.Data.DataSet dsCustomerAdapter = Ice.UI.FormFunctions.SearchFunctions.listLookup(this.oTrans, "CustomerAdapter", out recSelected, true, whereClause);
        if (recSelected)
        {
            System.Data.DataRow adapterRow = dsCustomerAdapter.Tables[0].Rows[0];

            // Map Search Fields to Application Fields
            EpiDataView         custDataView    = ((EpiDataView)(this.oTrans.EpiDataViews["Customer"]));
            System.Data.DataRow custDataViewRow = custDataView.CurrentDataRow;
            if ((custDataViewRow != null))
            {
                custDataViewRow.BeginEdit();
                custDataViewRow["ParentCustNum_c"] = adapterRow["CustNum"];
                custDataViewRow["ParentCustID_c"]  = adapterRow["CustID"];
                custDataViewRow.EndEdit();
            }
        }
    }
コード例 #16
0
    private void btnRetrieve_Click(object sender, System.EventArgs args)
    {
        // ** Place Event Handling Code Here **
        EpiDataView edvPartRev    = ((EpiDataView)(this.oTrans.EpiDataViews["PartRev"]));
        DataRow     edvPartRevRow = edvPartRev.CurrentDataRow;

        if ((edvPartRevRow != null))
        {
            FillVehicleGrid(edvPartRevRow["PartNum"].ToString(), edvPartRevRow["RevisionNum"].ToString());
        }
    }
コード例 #17
0
    // End Wizard Added Module Level Variables **

    // Add Custom Module Level Variables Here **

    public void InitializeCustomCode()
    {
        // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
        // Begin Wizard Added Variable Initialization

        this.edvV_PartRev_Vehicle_1View = ((EpiDataView)(this.oTrans.EpiDataViews["V_PartRev_Vehicle_1View"]));
        this.edvV_PartRev_Vehicle_1View.EpiViewNotification += new EpiViewNotification(this.edvV_PartRev_Vehicle_1View_EpiViewNotification);
        // End Wizard Added Variable Initialization

        // Begin Wizard Added Custom Method Calls

        // End Wizard Added Custom Method Calls
    }
コード例 #18
0
    // End Wizard Added Module Level Variables **

    // Add Custom Module Level Variables Here **

    public void InitializeCustomCode()
    {
        // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
        // Begin Wizard Added Variable Initialization
        this.edvUD04 = ((EpiDataView)(this.oTrans.EpiDataViews["UD04"]));

        this.oTrans_adapter = ((EpiBaseAdapter)(this.csm.TransAdaptersHT["oTrans_adapter"]));
        this.oTrans_adapter.AfterAdapterMethod += new AfterAdapterMethod(this.oTrans_adapter_AfterAdapterMethod);
        // End Wizard Added Variable Initialization

        // Begin Wizard Added Custom Method Calls
        // End Wizard Added Custom Method Calls
    }
コード例 #19
0
    public void DestroyCustomCode()
    {
        // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
        // Begin Wizard Added Object Disposal

        this.edvV_PartRev_Vehicle_1View.EpiViewNotification -= new EpiViewNotification(this.edvV_PartRev_Vehicle_1View_EpiViewNotification);
        this.edvV_PartRev_Vehicle_1View = null;
        // End Wizard Added Object Disposal

        // Begin Custom Code Disposal

        // End Custom Code Disposal
    }
コード例 #20
0
    public void DestroyCustomCode()
    {
        // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
        // Begin Wizard Added Object Disposal
        this.edvUD05 = null;

        this.oTrans_adapter.AfterAdapterMethod -= new AfterAdapterMethod(this.oTrans_adapter_AfterAdapterMethod);
        this.oTrans_adapter = null;
        // End Wizard Added Object Disposal

        // Begin Custom Code Disposal

        // End Custom Code Disposal
    }
コード例 #21
0
 private void edvCRMCall_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.Initialize && edvCRMCall.CurrentDataRow != null)
     {
         if (edvCRMCall.CurrentDataRow.RowState.ToString() == "Added" && String.IsNullOrEmpty(edvCRMCall.CurrentDataRow["CallTypeCode"].ToString()))
         {
             edvCRMCall.CurrentDataRow["CallTypeCode"] = "Call";
         }
     }
 }
コード例 #22
0
 private void edvReportParam_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.Initialize))
     {
         if ((args.Row > -1))
         {
             //MessageBox.Show(edvReportParam.dataView[edvReportParam.Row]["InvoiceNum"].ToString());
         }
     }
 }
コード例 #23
0
    private void ARInvForm_Load(object sender, EventArgs args)
    {
        // Add Event Handler Code
        EpiDataView dvRP = (EpiDataView)oTrans.EpiDataViews["ReportParam"];

        //MessageBox.Show(dvRP.dataView[dvRP.Row]["InvoiceNum"].ToString());
        dtInput.Clear();
        grdInput.DataSource = dtInput;
        //EpiDataView dvRP = (EpiDataView)oTrans.EpiDataViews["ReportParam"];
        Invoice = dvRP.dataView[dvRP.Row]["InvoiceNum"].ToString();
        if (Invoice != "0")
        {
            dtInput.Rows.Add(Invoice, printed);
        }
    }
コード例 #24
0
ファイル: grn.cs プロジェクト: xdents/WebApplication3
    public static void DestroyCustomCode()
    {
        // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
        // Begin Wizard Added Object Disposal

        Script.edvRcvDtl.EpiViewNotification -= new EpiViewNotification(Script.edvRcvDtl_EpiViewNotification);
        Script.edvRcvDtl = null;
        Script.oTrans_receiptAdapter.BeforeAdapterMethod -= new BeforeAdapterMethod(Script.oTrans_receiptAdapter_BeforeAdapterMethod);
        Script.oTrans_receiptAdapter = null;
        Script.epiButtonC1.Click    -= new System.EventHandler(Script.epiButtonC1_Click);
        // End Wizard Added Object Disposal

        // Begin Custom Code Disposal

        // End Custom Code Disposal
    }
コード例 #25
0
        private void SetExtendedProperties()
        {
            // Begin Wizard Added EpiDataView Initialization
            EpiDataView edvUD100A = ((EpiDataView)(this.oTrans.EpiDataViews["UD100A"]));

            // End Wizard Added EpiDataView Initialization

            // Begin Wizard Added Conditional Block
            if (edvUD100A.dataView.Table.Columns.Contains("Character01"))
            {
                // Begin Wizard Added ExtendedProperty Settings: edvUD100A-Character01
                edvUD100A.dataView.Table.Columns["Character01"].ExtendedProperties["ReadOnly"] = true;
                // End Wizard Added ExtendedProperty Settings: edvUD100A-Character01
            }
            // End Wizard Added Conditional Block
        }
コード例 #26
0
    public void DestroyCustomCode()
    {
        // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
        // Begin Wizard Added Object Disposal
        this.edvview   = null;
        this.edvClient = null;

        this.inventoryQtyAdjBrwView_DataView.ListChanged -= new ListChangedEventHandler(this.inventoryQtyAdjBrwView_DataView_ListChanged);
        this.inventoryQtyAdjBrwView_DataView              = null;
        this.InventoryQtyAdj_Column.ColumnChanged        -= new DataColumnChangeEventHandler(this.InventoryQtyAdj_AfterFieldChange);
        // End Wizard Added Object Disposal

        // Begin Custom Code Disposal

        // End Custom Code Disposal
    }
コード例 #27
0
    // End Wizard Added Module Level Variables **

    // Add Custom Module Level Variables Here **

    public void InitializeCustomCode()
    {
        // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
        // Begin Wizard Added Variable Initialization
        this.edvview   = ((EpiDataView)(this.oTrans.EpiDataViews["view"]));
        this.edvClient = ((EpiDataView)(this.oTrans.EpiDataViews["CallContextClientData"]));

        this.inventoryQtyAdjBrwView_DataView              = this.inventoryQtyAdjBrwView_Row.dataView;
        this.inventoryQtyAdjBrwView_DataView.ListChanged += new ListChangedEventHandler(this.inventoryQtyAdjBrwView_DataView_ListChanged);
        this.InventoryQtyAdj_Column.ColumnChanged        += new DataColumnChangeEventHandler(this.InventoryQtyAdj_AfterFieldChange);
        // End Wizard Added Variable Initialization

        // Begin Wizard Added Custom Method Calls

        // End Wizard Added Custom Method Calls
    }
コード例 #28
0
    public void CreateChild(string vBrand, string vVehicle, string vYear, string vLength, string vHeight)
    {
        try
        {
            EpiDataView         edvPartRev    = ((EpiDataView)(this.oTrans.EpiDataViews["PartRev"]));
            System.Data.DataRow edvPartRevRow = edvPartRev.CurrentDataRow;

            if ((edvPartRevRow != null))
            {
                string vPartNum     = edvPartRevRow["PartNum"].ToString();
                string vRevisionNum = edvPartRevRow["RevisionNum"].ToString();

                //MessageBox.Show("vPartNum: " + vPartNum + "  vRevisionNum: " + vRevisionNum);

                UD100Adapter ud100AdapterN = new UD100Adapter(PartForm);
                ud100AdapterN.BOConnect();

                //ud100AdapterN.GetNewUD100A(vBrand, vVehicle, vYear, vLength, vHeight, vPartNum, vRevisionNum, "");
                ud100AdapterN.GetByID(vBrand, vVehicle, vYear, vLength, vHeight);

                ud100AdapterN.GetaNewUD100a(vBrand, vVehicle, vYear, vLength, vHeight);
                int newRow = ud100AdapterN.UD100Data.UD100A.Rows.Count - 1;
                ud100AdapterN.UD100Data.UD100A.Rows[newRow]["ChildKey1"]     = vPartNum;
                ud100AdapterN.UD100Data.UD100A.Rows[newRow]["ChildKey2"]     = vRevisionNum;
                ud100AdapterN.UD100Data.UD100A.Rows[newRow]["ChildKey3"]     = "";
                ud100AdapterN.UD100Data.UD100A.Rows[newRow]["ChildKey4"]     = "";
                ud100AdapterN.UD100Data.UD100A.Rows[newRow]["ChildKey5"]     = "";
                ud100AdapterN.UD100Data.UD100A.Rows[newRow]["Brand_c"]       = vBrand;
                ud100AdapterN.UD100Data.UD100A.Rows[newRow]["Model_c"]       = vVehicle;
                ud100AdapterN.UD100Data.UD100A.Rows[newRow]["Year_c"]        = vYear;
                ud100AdapterN.UD100Data.UD100A.Rows[newRow]["Length_c"]      = vLength;
                ud100AdapterN.UD100Data.UD100A.Rows[newRow]["Height_c"]      = vHeight;
                ud100AdapterN.UD100Data.UD100A.Rows[newRow]["PartNum_c"]     = vPartNum;
                ud100AdapterN.UD100Data.UD100A.Rows[newRow]["RevisionNum_c"] = vRevisionNum;

                ud100AdapterN.Update();

                ud100AdapterN.Dispose();

                FillVehicleGrid(vPartNum, vRevisionNum);
            }
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.ToString());
        }
    }
コード例 #29
0
    public void DestroyCustomCode()
    {
        // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
        // Begin Wizard Added Object Disposal
        this.txtCurrentRevision.TextChanged -= new System.EventHandler(this.txtCurrentRevision_TextChanged);
        this.btnRetrieve.Click -= new System.EventHandler(this.btnRetrieve_Click);
        this.edvPartRev.EpiViewNotification -= new EpiViewNotification(this.edvPartRev_EpiViewNotification);
        this.edvPartRev             = null;
        this.btnGetPartRev.Click   -= new System.EventHandler(this.btnGetPartRev_Click);
        this.btnCopyVehicles.Click -= new System.EventHandler(this.btnCopyVehicles_Click);
        // End Wizard Added Object Disposal

        // Begin Custom Code Disposal
        this.buttonCopy.Click     -= new System.EventHandler(this.buttonCopy_Click);
        this.ugdVehicle.ClickCell -= new Infragistics.Win.UltraWinGrid.ClickCellEventHandler(this.ugdVehicle_ClickCell);
        // End Custom Code Disposal
    }
コード例 #30
0
ファイル: grn.cs プロジェクト: xdents/WebApplication3
    // End Wizard Added Module Level Variables **

    // Add Custom Module Level Variables Here **

    public static void InitializeCustomCode()
    {
        // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
        // Begin Wizard Added Variable Initialization
        edvRcvHead        = ((EpiDataView)(oTrans.EpiDataViews["RcvHead"]));
        edvMultiKeySearch = ((EpiDataView)(oTrans.EpiDataViews["MultiKeySearch"]));
        Script.edvRcvDtl  = ((EpiDataView)(Script.oTrans.EpiDataViews["RcvDtl"]));
        Script.edvRcvDtl.EpiViewNotification             += new EpiViewNotification(Script.edvRcvDtl_EpiViewNotification);
        Script.oTrans_receiptAdapter                      = ((EpiBaseAdapter)(Script.csm.TransAdaptersHT["oTrans_receiptAdapter"]));
        Script.oTrans_receiptAdapter.BeforeAdapterMethod += new BeforeAdapterMethod(Script.oTrans_receiptAdapter_BeforeAdapterMethod);
        // End Wizard Added Variable Initialization

        // Begin Wizard Added Custom Method Calls

        Script.epiButtonC1.Click += new System.EventHandler(Script.epiButtonC1_Click);
        // End Wizard Added Custom Method Calls
    }