Beispiel #1
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();
     }
 }
Beispiel #2
0
    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();
            }
        }
    }
Beispiel #3
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;
                }
            }
        }
    }
    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;
                    }
                }
            }
        }
    }
 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";
         }
     }
 }
 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());
         }
     }
 }
Beispiel #7
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.Initialize))
     {
         DataRow currentCustomer = this.custDataView.CurrentDataRow;
         if (currentCustomer != null)
         {
             this.btnNextCustID.Enabled = true;
         }
         else
         {
             this.btnNextCustID.Enabled = false;
         }
     }
 }
Beispiel #8
0
 private void edvV_PartRev_Vehicle_1View_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.Sender.ToString() == "Ice.Lib.Framework.BAQDataView") && (args.NotifyType == EpiTransaction.NotifyType.Initialize))
     {
         part      = ((EpiTextBox)csm.GetNativeControlReference("ed6ec35a-0be1-4dcd-89eb-5308ac6794f1"));
         revision  = ((EpiTextBox)csm.GetNativeControlReference("c1aa85d6-8d70-4496-955b-7daf20859ce2"));
         vehicleid = ((EpiTextBox)csm.GetNativeControlReference("7d32ffc7-c6fc-4973-9fd9-c6c252231c65"));
         brand     = ((EpiTextBox)csm.GetNativeControlReference("4da113e1-62c5-460c-b2ba-a2c30f926bcc"));
         vehicle   = ((EpiTextBox)csm.GetNativeControlReference("598f1ee6-03ca-4fb8-b233-2d570e3190ef"));
         year      = ((EpiTextBox)csm.GetNativeControlReference("dfcbd85f-77fe-40cb-8c39-0eda0915d335"));
         model     = ((EpiTextBox)csm.GetNativeControlReference("5409ba3e-abd9-456d-9b5a-bba146bc22cc"));
         if ((args.Row < 0) && (part.Text != "" || revision.Text != "" || vehicleid.Text != "" || brand.Text != "" || vehicle.Text != "" || year.Text != "" || model.Text != ""))
         {
             MessageBox.Show("No Results!");
         }
     }
 }
 private void edvPartRev_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
     this.partRevView = ((EpiDataView)(this.oTrans.EpiDataViews["PartRev"]));
     //MessageBox.Show(args.NotifyType.ToString());
     if (this.partRevView.CurrentDataRow != null && (args.NotifyType == EpiTransaction.NotifyType.Initialize))
     {
         this.buttonCopy.ReadOnly      = false;
         this.btnCopyVehicles.ReadOnly = false;
         this.txtCopyPart.Text         = "";
         this.txtCopyRev.Text          = "";
     }
     else
     {
         this.buttonCopy.ReadOnly      = true;
         this.btnCopyVehicles.ReadOnly = true;
     }
 }