Beispiel #1
0
        private bool DoEdit(int _id)
        {
            bool result = false;

            BLL.Order   bll   = new BLL.Order();
            Model.Order model = bll.GetModel(_id);

            model.AcceptOrderTime          = Convert.ToDateTime(txtAcceptOrderTime.Text.Trim());
            model.ArrivedTime              = Convert.ToDateTime(txtArrivedTime.Text.Trim());
            model.Shipper                  = ddlShipper.SelectedItem.Text;
            model.ShipperLinkMan           = txtShipperLinkMan.Text.Trim();
            model.ShipperLinkTel           = txtShipperLinkTel.Text.Trim();
            model.Receiver                 = ddlReceiver.SelectedItem.Text;
            model.ReceiverLinkMan          = txtReceiverLinkMan.Text.Trim();
            model.ReceiverLinkTel          = txtReceiverLinkTel.Text.Trim();
            model.ContractNumber           = txtContractNumber.Text.Trim();
            model.LoadingAddress           = ddlLoadingAddress.SelectedItem.Text;
            model.UnloadingAddress         = ddlUnloadingAddress.SelectedItem.Text;
            model.Goods                    = ddlGoods.SelectedItem.Text;
            model.Unit                     = txtUnit.Text.Trim();
            model.IsCharteredCar           = chkIsCharteredCar.Checked ? 1 : 0;
            model.Quantity                 = Convert.ToDecimal(txtQuantity.Text.Trim());
            model.Haulway                  = ddlHaulway.SelectedItem.Text;
            model.LoadingCapacityRunning   = Convert.ToDecimal(txtLoadingCapacityRunning.Text.Trim());
            model.NoLoadingCapacityRunning = Convert.ToDecimal(txtNoLoadingCapacityRunning.Text.Trim());
            model.BillNumber               = txtBillNumber.Text.Trim();
            model.WeighbridgeNumber        = txtWeighbridgeNumber.Text.Trim();
            model.Formula                  = ddlFormula.SelectedItem.Text;
            model.UnitPrice                = Convert.ToDecimal(txtUnitPrice.Text.Trim());
            model.TotalPrice               = Convert.ToDecimal(txtTotalPrice.Text.Trim());
            model.SettleAccountsWay        = ddlSettleAccountsWay.SelectedValue;
            model.Remarks                  = txtRemarks.Text.Trim();

            if (bll.Update(model))
            {
                AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改订单信息:" + model.Code); //记录日志
                result = true;
            }
            return(result);
        }
Beispiel #2
0
        private bool DoEdit(int _id)
        {
            bool result = false;

            BLL.Order   bll   = new BLL.Order();
            Model.Order model = bll.GetModel(_id);

            model.TransportOrderId         = Convert.ToInt32(ddlTransportOrder.SelectedValue);
            model.AcceptOrderTime          = Convert.ToDateTime(txtAcceptOrderTime.Text.Trim());
            model.ArrivedTime              = Convert.ToDateTime(txtArrivedTime.Text.Trim());
            model.ContractNumber           = txtContractNumber.Text.Trim();
            model.BillNumber               = txtBillNumber.Text.Trim();
            model.WeighbridgeNumber        = txtWeighbridgeNumber.Text.Trim();
            model.IsCharteredCar           = chkIsCharteredCar.Checked ? 1 : 0;
            model.Quantity                 = Convert.ToDecimal(txtQuantity.Text.Trim());
            model.IsWeightNote             = chkIsWeightNote.Checked;
            model.IsAllotted               = chkIsAllotted.Checked;
            model.UnitPrice                = Convert.ToDecimal(txtUnitPrice.Text.Trim());
            model.Weight                   = Convert.ToDecimal(txtWeight.Text.Trim());
            model.Freight                  = Convert.ToDecimal(txtFreight.Text.Trim());
            model.PaidFreight              = Convert.ToDecimal(txtPaidFreight.Text.Trim());
            model.UnpaidFreight            = Convert.ToDecimal(txtUnpaidFreight.Text.Trim());
            model.HandlingCharge           = Convert.ToDecimal(txtHandlingCharge.Text.Trim());
            model.LoadingAddress           = ddlLoadingAddress.SelectedItem.Text;
            model.UnloadingAddress         = ddlUnloadingAddress.SelectedItem.Text;
            model.ShipperId                = Convert.ToInt32(ddlShipper.SelectedValue);
            model.ReceiverId               = Convert.ToInt32(ddlReceiver.SelectedValue);
            model.Haulway                  = ddlHaulway.SelectedItem.Text;
            model.LoadingCapacityRunning   = Convert.ToDecimal(txtLoadingCapacityRunning.Text.Trim());
            model.NoLoadingCapacityRunning = Convert.ToDecimal(txtNoLoadingCapacityRunning.Text.Trim());
            model.GoodsId                  = Convert.ToInt32(ddlGoods.SelectedValue);
            model.Remarks                  = txtRemarks.Text.Trim();

            if (bll.Update(model))
            {
                AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改订单信息:" + model.Code); //记录日志
                result = true;
            }
            return(result);
        }
Beispiel #3
0
        private bool DoEdit(int _id)
        {
            bool result = false;
            BLL.Order bll = new BLL.Order();
            Model.Order model = bll.GetModel(_id);

            model.TransportOrderId = Convert.ToInt32(ddlTransportOrder.SelectedValue);
            model.AcceptOrderTime = Convert.ToDateTime(txtAcceptOrderTime.Text.Trim());
            model.ArrivedTime = Convert.ToDateTime(txtArrivedTime.Text.Trim());
            model.ContractNumber = txtContractNumber.Text.Trim();
            model.BillNumber = txtBillNumber.Text.Trim();
            model.WeighbridgeNumber = txtWeighbridgeNumber.Text.Trim();
            model.IsCharteredCar = chkIsCharteredCar.Checked ? 1 : 0;
            model.Quantity = Convert.ToDecimal(txtQuantity.Text.Trim());
            model.IsWeightNote = chkIsWeightNote.Checked;
            model.IsAllotted = chkIsAllotted.Checked;
            model.UnitPrice = Convert.ToDecimal(txtUnitPrice.Text.Trim());
            model.Weight = Convert.ToDecimal(txtWeight.Text.Trim());
            model.Freight = Convert.ToDecimal(txtFreight.Text.Trim());
            model.PaidFreight = Convert.ToDecimal(txtPaidFreight.Text.Trim());
            model.UnpaidFreight = Convert.ToDecimal(txtUnpaidFreight.Text.Trim());
            model.HandlingCharge = Convert.ToDecimal(txtHandlingCharge.Text.Trim());
            model.LoadingAddress = ddlLoadingAddress.SelectedItem.Text;
            model.UnloadingAddress = ddlUnloadingAddress.SelectedItem.Text;
            model.ShipperId = Convert.ToInt32(ddlShipper.SelectedValue);
            model.ReceiverId = Convert.ToInt32(ddlReceiver.SelectedValue);
            model.Haulway = ddlHaulway.SelectedItem.Text;
            model.LoadingCapacityRunning = Convert.ToDecimal(txtLoadingCapacityRunning.Text.Trim());
            model.NoLoadingCapacityRunning = Convert.ToDecimal(txtNoLoadingCapacityRunning.Text.Trim());
            model.GoodsId = Convert.ToInt32(ddlGoods.SelectedValue);
            model.Remarks = txtRemarks.Text.Trim();

            if (bll.Update(model))
            {
                AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改订单信息:" + model.Code); //记录日志
                result = true;
            }
            return result;
        }
Beispiel #4
0
        private bool DoEdit(int _id)
        {
            bool result = false;
            BLL.Order bll = new BLL.Order();
            Model.Order model = bll.GetModel(_id);

            model.AcceptOrderTime = Convert.ToDateTime(txtAcceptOrderTime.Text.Trim());
            model.ArrivedTime = Convert.ToDateTime(txtArrivedTime.Text.Trim());
            model.Shipper = ddlShipper.SelectedItem.Text;
            model.ShipperLinkMan = txtShipperLinkMan.Text.Trim();
            model.ShipperLinkTel = txtShipperLinkTel.Text.Trim();
            model.Receiver = ddlReceiver.SelectedItem.Text;
            model.ReceiverLinkMan = txtReceiverLinkMan.Text.Trim();
            model.ReceiverLinkTel = txtReceiverLinkTel.Text.Trim();
            model.ContractNumber = txtContractNumber.Text.Trim();
            model.LoadingAddress = ddlLoadingAddress.SelectedItem.Text;
            model.UnloadingAddress = ddlUnloadingAddress.SelectedItem.Text;
            model.Goods = ddlGoods.SelectedItem.Text;
            model.Unit = txtUnit.Text.Trim();
            model.IsCharteredCar = chkIsCharteredCar.Checked ? 1 : 0;
            model.Quantity = Convert.ToDecimal(txtQuantity.Text.Trim());
            model.Haulway = ddlHaulway.SelectedItem.Text;
            model.LoadingCapacityRunning = Convert.ToDecimal(txtLoadingCapacityRunning.Text.Trim());
            model.NoLoadingCapacityRunning = Convert.ToDecimal(txtNoLoadingCapacityRunning.Text.Trim());
            model.BillNumber = txtBillNumber.Text.Trim();
            model.WeighbridgeNumber = txtWeighbridgeNumber.Text.Trim();
            model.Formula = ddlFormula.SelectedItem.Text;
            model.UnitPrice = Convert.ToDecimal(txtUnitPrice.Text.Trim());
            model.TotalPrice = Convert.ToDecimal(txtTotalPrice.Text.Trim());
            model.SettleAccountsWay = ddlSettleAccountsWay.SelectedValue;
            model.Remarks = txtRemarks.Text.Trim();

            if (bll.Update(model))
            {
                AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改订单信息:" + model.Code); //记录日志
                result = true;
            }
            return result;
        }