Ejemplo n.º 1
0
        private clsScenario TextToScenario()
        {
            clsScenario mySce = new clsScenario();

            mySce.GIScenarioID   = clsGlobals.GIPar.ScenarioID;
            mySce.ScenarioDesc   = txtDesc.Text;
            mySce.ScenarioStatus = Convert.ToInt32(cboStatus.SelectedValue);

            mySce.CollectionID       = Convert.ToInt32(cboCollection.SelectedValue);
            mySce.DefaultWarehouseID = Convert.ToInt32(cboWhs.SelectedValue);;
            mySce.DivisionID         = Convert.ToInt32(cboDivision.SelectedValue);
            mySce.ExpArrivalDate     = dtpArrivalDate.Value;
            mySce.ExpShippingDate    = dtpShipDate.Value;
            mySce.GIScenarioID       = clsGlobals.GIPar.ScenarioID;
            mySce.PurchaseTypeID     = Convert.ToInt32(cboPurchaseType.SelectedValue);;
            mySce.ReferenceNo1       = txtRef1.Text;
            mySce.ReferenceNo2       = txtRef2.Text;
            mySce.ScenarioDesc       = txtDesc.Text;
            mySce.ScenarioStatus     = Convert.ToInt32(cboStatus.SelectedValue);
            mySce.VendorID           = Convert.ToInt32(cboBillFrom.SelectedValue);
            mySce.VendorSiteID       = eleShip.GetVendorSiteID(mySce.VendorID);
            mySce.VOMessage          = txtVOMessage.Text;
            mySce.VONote             = txtVONote.Text;
            mySce.VOSeasonID         = Convert.ToInt32(cboSeason.SelectedValue);
            return(mySce);
        }
Ejemplo n.º 2
0
 private void TextToScProduct()
 {
     myScP.ScenarioID         = clsGlobals.GIPar.ScenarioID;
     myScP.ProductColorID     = clsGlobals.GIPar.ProductColorID;
     myScP.ReferenceNo1       = txtRef1.Text;
     myScP.ReferenceNo2       = txtRef2.Text;
     myScP.ExpArrivalDate     = dtpArrivalDate.Value;
     myScP.ExpShippingDate    = dtpShipDate.Value;
     myScP.VendorID           = Convert.ToInt32(cboBillFrom.SelectedValue);
     myScP.VendorSiteID       = eleShip.GetVendorSiteID(myScP.VendorID);
     myScP.PurchaseTypeID     = Convert.ToInt32(cboPurchaseType.SelectedValue);
     myScP.DefaultWarehouseID = Convert.ToInt32(cboWhs.SelectedValue);
     myScP.DivisionID         = Convert.ToInt32(cboDivision.SelectedValue);
     myScP.CollectionID       = Convert.ToInt32(cboCollection.SelectedValue);
     myScP.VOSeasonID         = Convert.ToInt32(cboSeason.SelectedValue);
     myScP.VONote             = txtVONote.Text.Trim();
     myScP.VOMessage          = txtVOMessage.Text.Trim();
     myScP.SurplusRate        = Convert.ToDouble(txtSurplus.Text);
     myScP.ProductComment     = txtProductComment.Text;
     clsGlobals.ActiveRatio   = myScP.SurplusRate;
 }