Example #1
0
 private void GIParameterToText(clsGIParameter myPar)
 {
     txtCommon.Text     = myPar.SurplusRateCommon.ToString();
     txtIdentified.Text = myPar.SurplusRateIdentified.ToString();
     txtOS.Text         = myPar.SurplusRateOS.ToString();
     txtUnique.Text     = myPar.SurplusRateUnique.ToString();
 }
Example #2
0
        private clsGIParameter TextToGIParameter()
        {
            clsGIParameter myPar = new clsGIParameter();

            myPar.SurplusRateCommon     = Convert.ToInt32(txtCommon.Text);
            myPar.SurplusRateIdentified = Convert.ToInt32(txtIdentified.Text);
            myPar.SurplusRateOS         = Convert.ToInt32(txtOS.Text);
            myPar.SurplusRateUnique     = Convert.ToInt32(txtUnique.Text);

            return(myPar);
        }
Example #3
0
 private void frmSurplusParameters_Load(object sender, EventArgs e)
 {
     try
     {
         clsGIParameter myPar = new clsGIParameter();
         myPar.GetSurplusParameters();
         GIParameterToText(myPar);
         DeactivateControls();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #4
0
 private void GIParametersToText(clsGIParameter myPar)
 {
     txtRef1.Text                  = myPar.ReferenceNo1;
     txtRef2.Text                  = myPar.ReferenceNo2;
     txtVOMessage.Text             = myPar.VOMessage;
     txtVONote.Text                = myPar.VONote;
     cboBillFrom.SelectedValue     = myPar.VendorID.ToString();
     cboCollection.SelectedValue   = myPar.CollectionID.ToString();
     cboDivision.SelectedValue     = myPar.DivisionID.ToString();
     cboPurchaseType.SelectedValue = myPar.PurchaseTypeID.ToString();
     cboSeason.SelectedValue       = myPar.SeasonID.ToString();
     cboWhs.SelectedValue          = myPar.DefaultWarehouseID.ToString();
     dtpArrivalDate.Value          = myPar.ExpArrivalDate;
     dtpShipDate.Value             = myPar.ExpShippingDate;
 }
Example #5
0
        private clsGIParameter TextToGIParameter()
        {
            clsGIParameter myPar = new clsGIParameter();

            myPar.CollectionID       = Convert.ToInt32(cboCollection.SelectedValue);
            myPar.DefaultWarehouseID = Convert.ToInt32(cboWhs.SelectedValue);
            myPar.DivisionID         = Convert.ToInt32(cboDivision.SelectedValue);
            myPar.ExpArrivalDate     = Convert.ToDateTime(dtpArrivalDate.Value);
            myPar.ExpShippingDate    = Convert.ToDateTime(dtpShipDate.Value);
            myPar.PurchaseTypeID     = Convert.ToInt32(cboPurchaseType.SelectedValue);
            myPar.ReferenceNo1       = Convert.ToString(txtRef1.Text.Trim());
            myPar.ReferenceNo2       = Convert.ToString(txtRef2.Text.Trim());
            myPar.SeasonID           = Convert.ToInt32(cboSeason.SelectedValue);
            myPar.VendorID           = Convert.ToInt32(cboBillFrom.SelectedValue);
            myPar.VendorSiteID       = Convert.ToInt32(eleShip.ElementID);
            myPar.VOMessage          = Convert.ToString(txtVOMessage.Text.Trim());
            myPar.VONote             = Convert.ToString(txtVONote.Text.Trim());

            return(myPar);
        }