/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Details: txtKeyId.Text = KeyId; if (StockOut != null) { WebControlHandler.BindObjectToControls(StockOut, SimpleForm1); tbxFCustomer.Text = StockOut.FName; txtFAddress.Text = StockOut.FAddress; txtFFreight.Text = StockOut.FFreight.ToString(); txtFLinkman.Text = StockOut.FLinkman; txtFMemo.Text = StockOut.FMemo; txtFPhone.Text = StockOut.FPhone; ddlFDriver.Text = StockOut.FDriver; ddlFShipper.Text = StockOut.FShipper; ddlFSupercargo.Text = StockOut.FSupercargo; ddlFVehicleNum.Text = StockOut.FVehicleNum; txtFDate.Text = Convert.ToDateTime(StockOut.FDate).ToString("yyyy-MM-dd"); //发货单据 BindDataGrid(); } break; } }
/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Details: txtKeyId.Text = KeyId; if (StockOut != null) { WebControlHandler.BindObjectToControls(StockOut, SimpleForm1); tbxFCustomer.Text = StockOut.FName; txtFMemo.Text = StockOut.FMemo; ddlFDriver.Text = StockOut.FDriver; ddlFShipper.Text = StockOut.FShipper; ddlFSupercargo.Text = StockOut.FSupercargo; ddlFVehicleNum.Text = StockOut.FVehicleNum; txtFDate.Text = Convert.ToDateTime(StockOut.FDate).ToString("yyyy-MM-dd"); tbxFLogisticsNumber.Text = StockOut.FLogisticsNumber; txtCreateBy.Text = StockOut.CreateBy; txtKeyId.Text = StockOut.KeyId; ddlFSupercargo.Text = StockOut.FSupercargo; txtFMemo.Text = StockOut.FMemo; ddlFSendee.Text = StockOut.FSendee; ddlFPoint.Text = StockOut.FPoint; ddlFDistributionPoint.Text = StockOut.FDistributionPoint; ddlDeliveryMethod.Text = StockOut.FDeliveryMethod; ddlFSalesman.Text = StockOut.FSalesman; txtFCode.Text = StockOut.FCode; //发货单据 BindDataGrid(); } break; } }
/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Add: txtKeyId.Text = SequenceService.CreateSequence("TM", CurrentUser.AccountComId); Region3.Title = "调整客户代码期初占用钢瓶单"; var temp = new LHInitMonth { KeyId = txtKeyId.Text, FFlag = 1, FDeleteFlag = 1, //调整客户代码期初占用钢瓶单 FType = Convert.ToInt32(GasEnumBill.ChangeAccount), CreateBy = CurrentUser.AccountName, FDate = txtFDate.SelectedDate, FCompanyId = CurrentUser.AccountComId, FStatus = Convert.ToInt32(GasEnumBillStauts.Add), }; //临时写入单据 InitMonthServie.Add(temp); //合计 //var summary = new JObject //{ // {"FItemCode", "合计"}, // {"FQty", 0}, //}; //Grid1.SummaryData = summary; break; case WebAction.Edit: txtKeyId.Text = KeyId; Region3.Title = "编辑调整客户代码期初占用钢瓶单"; if (StockOut != null) { WebControlHandler.BindObjectToControls(StockOut, SimpleForm1); txtFDate.SelectedDate = StockOut.FDate; tbxFCustomer.Text = StockOut.FName; txtFAmount.Text = StockOut.FAmount.ToString(); BindDataGrid(); } break; } }
/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Add: txtKeyId.Text = SequenceService.CreateSequence("TM", CurrentUser.AccountComId); Region3.Title = "添加送货提成单"; var temp = new LHDispatchCommission { KeyId = txtKeyId.Text, FFlag = 1, FDeleteFlag = 1, //送货提成单 FType = Convert.ToInt32(GasEnumBill.DispatchCommission), CreateBy = CurrentUser.AccountName, FDate = txtFDate.SelectedDate, FCompanyId = CurrentUser.AccountComId, FStatus = Convert.ToInt32(GasEnumBillStauts.Add), }; //临时写入单据 DispatchCommissionService.Add(temp); //合计 var summary = new JObject { { "FItemCode", "合计" }, { "FQty", 0 }, { "FAmount", 0 } }; Grid1.SummaryData = summary; break; case WebAction.Edit: txtKeyId.Text = KeyId; Region3.Title = "编辑送货提成单"; if (StockOut != null) { WebControlHandler.BindObjectToControls(StockOut, SimpleForm1); txtFDate.SelectedDate = StockOut.FDate; BindDataGrid(); } break; } }
/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Details: GasHelper.DropDownListDataBindOrgnization(ddlOrgnization); GasHelper.DropDownListDataBindReceiveSendType(ddlT6ReceiveSendType); txtKeyId.Text = KeyId; if (StockOut != null) { WebControlHandler.BindObjectToControls(StockOut, SimpleForm1); txtFDate.Text = StockOut.FDate.ToString(); //tbxFCustomer.Text = StockOut.FName; //if (!string.IsNullOrEmpty(StockOut.FDriver)) // ddlFDriver.SelectedValueArray = StockOut.FDriver.Split(','); //if (!string.IsNullOrEmpty(StockOut.FShipper)) // ddlFShipper.SelectedValueArray = StockOut.FShipper.Split(','); //if (!string.IsNullOrEmpty(StockOut.FSupercargo)) // ddlFSupercargo.SelectedValueArray = StockOut.FSupercargo.Split(','); //if (!string.IsNullOrEmpty(StockOut.FSalesman)) // ddlFSalesman.SelectedValueArray = StockOut.FSalesman.Split(','); //ddlFVehicleNum.SelectedValue = StockOut.FVehicleNum; //ddlFArea.SelectedValue = StockOut.FArea; //ddlDeliveryMethod.SelectedValue = StockOut.FDeliveryMethod; txtFCate.Text = StockOut.FCate; ddlOrgnization.SelectedValue = StockOut.FCode; txtFReceiver.Text = StockOut.FSalesman; txtFWarehouse.Text = StockOut.FT6Warehouse; ddlT6ReceiveSendType.SelectedValue = StockOut.FT6ReceiveSendTypeNum; txtFGroup.Text = StockOut.FGroup; txtFDistributionPoint.Text = StockOut.FDistributionPoint; txtFMemo.Text = StockOut.FMemo; //发货单据 BindDataGrid(); } break; } }
/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Details: txtFCode.Text = KeyId; if (StockIn != null) { WebControlHandler.BindObjectToControls(StockIn, SimpleForm1); BindDataGrid(); } break; } }
/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Details: txtKeyId.Text = KeyId; if (FKOrder != null) { WebControlHandler.BindObjectToControls(FKOrder, SimpleForm1); txtFCode.Text = FKOrder.FCode; tbxFCustomer.Text = FKOrder.FName; txtFMemo.Text = FKOrder.FMemo; BindDataGrid(); } break; } }
/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Details: txtKeyId.Text = KeyId; if (StockOut != null) { WebControlHandler.BindObjectToControls(StockOut, SimpleForm1); tbxFCustomer.Text = StockOut.FName; txtFAddress.Text = StockOut.FAddress; txtFFreight.Text = StockOut.FFreight.ToString(); txtFLinkman.Text = StockOut.FLinkman; txtFMemo.Text = StockOut.FMemo; txtFPhone.Text = StockOut.FPhone; ddlFDriver.Text = StockOut.FDriver; ddlFShipper.Text = StockOut.FShipper; ddlFSupercargo.Text = StockOut.FSupercargo; ddlFVehicleNum.Text = StockOut.FVehicleNum; txtFDate.Text = Convert.ToDateTime(StockOut.FDate).ToString("yyyy-MM-dd"); if (Attachment != null) { lblfile.Text = string.Format(@"<a href='../../{0}' target='_blank'>附件</a>", // Attachment.FPath.Replace("~/", "")); } else { lblfile.Text = string.Empty; } //发货单据 BindDataGrid(); } break; } }
/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Add: txtKeyId.Text = SequenceService.CreateSequence("TM", CurrentUser.AccountComId); Region3.Title = "添加钢瓶检测"; var temp = new LHBottleDetection { KeyId = txtKeyId.Text, FFlag = 1, FDeleteFlag = 1, //钢瓶检测 FType = Convert.ToInt32(GasEnumBill.BottleDetection), CreateBy = CurrentUser.AccountName, FDate = txtFDate.SelectedDate, FCompanyId = CurrentUser.AccountComId, FStatus = Convert.ToInt32(GasEnumBillStauts.Add), FProgress = Convert.ToInt32(GasEnumBillStauts.Add), FCate = "客户" }; //临时写入单据 BottleDetectionService.Add(temp); //合计 var summary = new JObject { { "FItemCode", "合计" }, { "FQty", 0 }, { "FAmount", 0 } }; Grid1.SummaryData = summary; break; case WebAction.Edit: txtKeyId.Text = KeyId; Region3.Title = "编辑钢瓶检测"; if (StockOut != null) { WebControlHandler.BindObjectToControls(StockOut, SimpleForm1); txtFDate.SelectedDate = StockOut.FDate; tbxFCustomer.Text = StockOut.FName; if (!string.IsNullOrEmpty(StockOut.FDriver)) { ddlFDriver.SelectedValueArray = StockOut.FDriver.Split(','); } if (!string.IsNullOrEmpty(StockOut.FShipper)) { ddlFShipper.SelectedValueArray = StockOut.FShipper.Split(','); } if (!string.IsNullOrEmpty(StockOut.FSupercargo)) { ddlFSupercargo.SelectedValueArray = StockOut.FSupercargo.Split(','); } if (!string.IsNullOrEmpty(StockOut.FSalesman)) { ddlFSalesman.SelectedValueArray = StockOut.FSalesman.Split(','); } ddlSubject.SelectedValue = StockOut.FSubjectCode; ddlFVehicleNum.SelectedValue = StockOut.FVehicleNum; ddlFArea.SelectedValue = StockOut.FArea; ddlDeliveryMethod.SelectedValue = StockOut.FDeliveryMethod; if (Attachment != null) { lblfile.Text = string.Format(@"<a href='../../{0}' target='_blank'>附件</a>", // Attachment.FPath.Replace("~/", "")); } else { lblfile.Text = string.Empty; } BindDataGrid(); } break; } }
/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Add: txtKeyId.Text = SequenceService.CreateSequence("TM", CurrentUser.AccountComId); Region1.Title = "添加采购单"; txtFT6ExchangeRate.Text = "1"; var temp = new LHStockIn { KeyId = txtKeyId.Text, FFlag = 1, FDeleteFlag = 1, //发货单 FType = Convert.ToInt32(GasEnumBill.Purchase), CreateBy = CurrentUser.AccountName, FDate = txtFDate.SelectedDate, FCompanyId = CurrentUser.AccountComId, FStatus = Convert.ToInt32(GasEnumBillStauts.Add), FProgress = Convert.ToInt32(GasEnumBillStauts.Add), FCate = "供应商" }; //临时写入单据 StockInService.Add(temp); //合计 var summary = new JObject { { "FItemCode", "合计" }, { "FQty", 0 }, { "FAmount", 0 } }; Grid1.SummaryData = summary; break; case WebAction.Edit: Region1.Title = "编辑采购单"; txtKeyId.Text = KeyId; if (StockIn != null) { WebControlHandler.BindObjectToControls(StockIn, SimpleForm1); txtFDate.SelectedDate = StockIn.FDate; tbxFCustomer.Text = StockIn.FName; if (!string.IsNullOrEmpty(StockIn.FDriver)) { ddlFDriver.SelectedValueArray = StockIn.FDriver.Split(','); } if (!string.IsNullOrEmpty(StockIn.FShipper)) { ddlFShipper.SelectedValueArray = StockIn.FShipper.Split(','); } if (!string.IsNullOrEmpty(StockIn.FSupercargo)) { ddlFSupercargo.SelectedValueArray = StockIn.FSupercargo.Split(','); } if (!string.IsNullOrEmpty(StockIn.FSalesman)) { ddlFSalesman.SelectedValueArray = StockIn.FSalesman.Split(','); } ddlSubject.SelectedValue = StockIn.FSubjectCode; ddlFVehicleNum.SelectedValue = StockIn.FVehicleNum; ddlFArea.SelectedValue = StockIn.FArea; ddlDeliveryMethod.SelectedValue = StockIn.FDeliveryMethod; ddlFT6PurchaseType.SelectedValue = StockIn.FT6PurchaseTypeNum; ddlFT6Currency.SelectedValue = StockIn.FT6Currency; ddlT6ReceiveSendType.SelectedValue = StockIn.FT6ReceiveSendTypeNum; tbxFLogisticsNumber.Text = StockIn.FLogisticsNumber; ddlWarehouse.SelectedValue = StockIn.FT6Warehouse; ddlFDistributionPoint.SelectedValue = StockIn.FDistributionPoint; BindDataGrid(); } break; } }
/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Add: Region1.Title = "添加空瓶回收单"; txtKeyId.Text = SequenceService.CreateSequence("TM", CurrentUser.AccountComId); var temp = new LHStockIn { KeyId = txtKeyId.Text, FFlag = 1, FDeleteFlag = 1, //空瓶回收单 FType = Convert.ToInt32(GasEnumBill.BottleReturn), CreateBy = CurrentUser.AccountName, FDate = txtFDate.SelectedDate, FCompanyId = CurrentUser.AccountComId, FStatus = Convert.ToInt32(GasEnumBillStauts.Add), FProgress = Convert.ToInt32(GasEnumBillStauts.Add), }; //临时写入单据 StockInService.Add(temp); break; case WebAction.Edit: Region1.Title = "编辑空瓶回收单"; txtKeyId.Text = KeyId; if (StockIn != null) { WebControlHandler.BindObjectToControls(StockIn, SimpleForm1); txtFDate.SelectedDate = StockIn.FDate; tbxFCustomer.Text = StockIn.FName; if (!string.IsNullOrEmpty(StockIn.FDriver)) { ddlFDriver.SelectedValueArray = StockIn.FDriver.Split(','); } if (!string.IsNullOrEmpty(StockIn.FShipper)) { ddlFShipper.SelectedValueArray = StockIn.FShipper.Split(','); } if (!string.IsNullOrEmpty(StockIn.FSupercargo)) { ddlFSupercargo.SelectedValueArray = StockIn.FSupercargo.Split(','); } if (!string.IsNullOrEmpty(StockIn.FSalesman)) { ddlFSalesman.SelectedValueArray = StockIn.FSalesman.Split(','); } ddlFVehicleNum.SelectedValue = StockIn.FVehicleNum; ddlFArea.SelectedValue = StockIn.FArea; ddlDeliveryMethod.SelectedValue = StockIn.FDeliveryMethod; ddlReturn.SelectedValue = StockIn.FClass; ddlDeliveryMethod.SelectedValue = StockIn.FDeliveryMethod; ddlFDistributionPoint.SelectedValue = StockIn.FDistributionPoint; hfdCate.Text = StockIn.FCate; BindDataGrid(); } break; } }
/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Add: txtKeyId.Text = SequenceService.CreateSequence("MR", CurrentUser.AccountComId); Region3.Title = "添加领料单"; var temp = new LHStockOut { KeyId = txtKeyId.Text, FFlag = 1, FDeleteFlag = 1, //发货单 FType = Convert.ToInt32(GasEnumBill.picking), CreateBy = CurrentUser.AccountName, FDate = txtFDate.SelectedDate, FCompanyId = CurrentUser.AccountComId, FStatus = Convert.ToInt32(GasEnumBillStauts.Add), FProgress = Convert.ToInt32(GasEnumBillStauts.Add), }; //临时写入单据 StockOutService.Add(temp); //合计 var summary = new JObject { { "FItemCode", "合计" }, { "FQty", 0 }, { "FAmount", 0 } }; Grid1.SummaryData = summary; break; case WebAction.Edit: txtKeyId.Text = KeyId; Region3.Title = "编辑领料单"; if (StockOut != null) { WebControlHandler.BindObjectToControls(StockOut, SimpleForm1); txtFDate.SelectedDate = StockOut.FDate; //tbxFCustomer.Text = StockOut.FName; //if (!string.IsNullOrEmpty(StockOut.FDriver)) // ddlFDriver.SelectedValueArray = StockOut.FDriver.Split(','); //if (!string.IsNullOrEmpty(StockOut.FShipper)) // ddlFShipper.SelectedValueArray = StockOut.FShipper.Split(','); //if (!string.IsNullOrEmpty(StockOut.FSupercargo)) // ddlFSupercargo.SelectedValueArray = StockOut.FSupercargo.Split(','); //if (!string.IsNullOrEmpty(StockOut.FSalesman)) // ddlFSalesman.SelectedValueArray = StockOut.FSalesman.Split(','); //ddlFVehicleNum.SelectedValue = StockOut.FVehicleNum; //ddlFArea.SelectedValue = StockOut.FArea; //ddlDeliveryMethod.SelectedValue = StockOut.FDeliveryMethod; ddlFCate.SelectedValue = StockOut.FCate; ddlOrgnization.SelectedValue = StockOut.FCode; ddlFReceiver.SelectedValue = StockOut.FSalesman; ddlFWarehouse.SelectedValue = StockOut.FT6Warehouse; ddlT6ReceiveSendType.SelectedValue = StockOut.FT6ReceiveSendTypeNum; ddlFGroup.SelectedValue = StockOut.FGroup; ddlFDistributionPoint.SelectedValue = StockOut.FDistributionPoint; BindDataGrid(); } break; } }
/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Add: txtKeyId.Text = SequenceService.CreateSequence("TM", CurrentUser.AccountComId); Region3.Title = "添加液体采购订单"; var temp = new LHLiquidPlanTask { KeyId = txtKeyId.Text, FFlag = 1, FDeleteFlag = 1, //发货单 FType = Convert.ToInt32(GasEnumBill.LiquidPurchasePlan), CreateBy = CurrentUser.AccountName, FDate = txtFDate.SelectedDate, FCompanyId = CurrentUser.AccountComId, FStatus = Convert.ToInt32(GasEnumBillStauts.Add), FMergeFlag = 0 }; //临时写入单据 LiquidPlanTaskService.Add(temp); break; case WebAction.Edit: txtKeyId.Text = KeyId; Region3.Title = "编辑液体采购订单"; if (LiquidPlanTask != null) { WebControlHandler.BindObjectToControls(LiquidPlanTask, SimpleForm1); txtFDate.SelectedDate = LiquidPlanTask.FDate; tbxFCustomer.Text = LiquidPlanTask.FName; if (!string.IsNullOrEmpty(LiquidPlanTask.FDriver)) { ddlFDriver.SelectedValueArray = LiquidPlanTask.FDriver.Split(','); } //if (!string.IsNullOrEmpty(StockOut.FShipper)) // ddlFShipper.SelectedValueArray = StockOut.FShipper.Split(','); if (!string.IsNullOrEmpty(LiquidPlanTask.FSupercargo)) { ddlFSupercargo.SelectedValueArray = LiquidPlanTask.FSupercargo.Split(','); } if (!string.IsNullOrEmpty(LiquidPlanTask.FSalesman)) { ddlFSalesman.SelectedValueArray = LiquidPlanTask.FSalesman.Split(','); } ddlFVehicleNum.SelectedValue = LiquidPlanTask.FVehicleNum; ddlFArea.SelectedValue = LiquidPlanTask.FArea; ddlDeliveryMethod.SelectedValue = LiquidPlanTask.FDeliveryMethod; if (Attachment != null) { lblfile.Text = string.Format(@"<a href='../../{0}' target='_blank'>附件</a>", // Attachment.FPath.Replace("~/", "")); } else { lblfile.Text = string.Empty; } } break; } }
/// <summary> /// 加载页面数据 /// </summary> private void LoadData() { switch (Actions) { case WebAction.Add: txtKeyId.Text = SequenceService.CreateSequence("TM", CurrentUser.AccountComId); Region3.Title = "添加入库单"; var temp = new LHStockIn { KeyId = txtKeyId.Text, FFlag = 1, FAuditFlag = 1, FDeleteFlag = 1, //发货单 FType = Convert.ToInt32(GasEnumBill.output), CreateBy = CurrentUser.AccountName, FDate = txtFDate.SelectedDate, FCompanyId = CurrentUser.AccountComId, FStatus = Convert.ToInt32(GasEnumBillStauts.Add), FProgress = Convert.ToInt32(GasEnumBillStauts.Add), }; //临时写入单据 StockInService.Add(temp); //合计 var summary = new JObject { { "FItemCode", "合计" }, { "FQty", 0 }, { "FAmount", 0 } }; Grid1.SummaryData = summary; break; case WebAction.Edit: txtKeyId.Text = KeyId; Region3.Title = "编辑入库单"; if (StockIn != null) { WebControlHandler.BindObjectToControls(StockIn, SimpleForm1); txtFDate.SelectedDate = StockIn.FDate; ddlFCate.SelectedValue = StockIn.FCate; ddlFSalesman.SelectedValue = StockIn.FSalesman; ddlFWarehouse.SelectedValue = StockIn.FT6Warehouse; ddlT6ReceiveSendType.SelectedValue = StockIn.FT6ReceiveSendTypeNum; ddlFGroup.SelectedValue = StockIn.FGroup; ddlFDistributionPoint.SelectedValue = StockIn.FDistributionPoint; BindDataGrid(); } break; } }