/// <summary> /// 窗体初始加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCRequisitionAddOrEdit_Load(object sender, EventArgs e) { try { CommonFuncCall.BindAllotBillType(Comborder_type_name, true, "请选择"); //调拨单类型 CommonFuncCall.BindComBoxDataSource(Combtrans_way_name, "sys_trans_mode", "请选择"); //运输方式 CommonFuncCall.BindCompany(combcall_out_org_name, "请选择"); //调出机构 CommonFuncCall.BindCompany(combcall_in_org_name, "请选择"); //调入机构 CommonFuncCall.BindWarehouse(combcall_out_wh_name, "请选择"); //调出仓库 CommonFuncCall.BindWarehouse(combcall_in_wh_name, "请选择"); //调入仓库 BrandTable = CommonFuncCall.BindDicDataSource("sys_parts_brand"); //获得品牌名称 if (status == WindowStatus.Edit || status == WindowStatus.Copy) { GetBillHeadEndMessage(AllotBillId); //获取单据头尾信息 GetBillPartsMsg(AllotBillId); //获取单据配件信息 } else if (status == WindowStatus.Add || status == WindowStatus.Copy) { txtorder_status_name.Caption = DataSources.GetDescription(DataSources.EnumAuditStatus.DRAFT, true);//获取单据状态 } } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
/// <summary> /// 窗体初始化加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCRequisitionManager_Load(object sender, EventArgs e) { try { //获取默认系统时间 dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString(); dateTimeEnd.Value = DateTime.Now.ToString(); //单据类型 CommonFuncCall.BindAllotBillType(ComBorder_type_name, true, "请选择");//调拨单类型 //开单类型 CommonFuncCall.BindAllocationBillingType(ComBcall_out_wh_name, true, "请选择"); //获取仓库名称 CommonFuncCall.BindWarehouse(ComBcall_in_wh_name, "请选择"); CommonFuncCall.BindWarehouse(ComBcall_out_wh_name, "请选择"); // 调入机构 CommonFuncCall.BindCompany(ComBcall_in_org_name, "全部"); //运输方式 CommonFuncCall.BindComBoxDataSource(Combtrans_way_name, "sys_trans_mode", "全部"); //单据状态 CommonFuncCall.BindOrderStatus(Comborder_status_name, true); //公司 CommonFuncCall.BindCompany(ComBcom_name, "全部"); //部门 CommonFuncCall.BindDepartment(ComBorg_name, "", "全部"); //经办人 CommonFuncCall.BindHandle(ComBhandle_name, "", "全部"); } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
private void UCActualDetail_Load(object sender, EventArgs e) { CommonFuncCall.BindCompany(cboCompany, "全部"); //绑定公司 CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); //绑定仓库 #region 显示合并表头 dgvReport.MergeColumnNames.Add("收入数量"); dgvReport.AddSpanHeader(6, 2, "收入数量"); dgvReport.MergeColumnNames.Add("发出数量"); dgvReport.AddSpanHeader(8, 2, "发出数量"); dgvReport.MergeColumnNames.Add("结存数量"); dgvReport.AddSpanHeader(10, 2, "结存数量"); #endregion #region 报表合并表头 List <string> listRevenues = new List <string>(); listRevenues.Add("数量(基)"); listRevenues.Add("数量(辅)"); AddSpanRows("收入数量", listRevenues); List <string> listExpend = new List <string>(); listExpend.Add("数量(基)"); listExpend.Add("数量(辅)"); AddSpanRows("支出数量", listExpend); List <string> listBalance = new List <string>(); listBalance.Add("数量(基)"); listBalance.Add("数量(辅)"); AddSpanRows("结存数量", listBalance); #endregion BindData(); }
/// <summary> /// 窗体初始加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCStockReceiptAddOrEdit_Load(object sender, EventArgs e) { try { //获取仓库名称 CommonFuncCall.BindWarehouse(Combwh_name, "请选择"); //公司ID string com_id = GlobalStaticObj.CurrUserCom_Id; CommonFuncCall.BindDepartment(Comborg_name, com_id, "请选择");//选择部门名称 if (status == WindowStatus.Edit || status == WindowStatus.Copy) { GetBillHeadEndMessage(StockCheckId); //获取单据头尾信息 GetBillPartsMsg(StockCheckId); //获取单据配件信息 } else if (status == WindowStatus.Add || status == WindowStatus.Copy) { txtorder_status_name.Caption = DataSources.GetDescription(DataSources.EnumAuditStatus.DRAFT, true);//获取单据状态 } } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
/// <summary> /// 窗体初始加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCStockReceiptAddOrEdit_Load(object sender, EventArgs e) { try { //获取仓库名称 CommonFuncCall.BindWarehouse(Combwh_name, "请选择"); //公司ID string com_id = GlobalStaticObj.CurrUserCom_Id; CommonFuncCall.BindCompany(combcom_name, "全部"); //选择公司名称 CommonFuncCall.BindDepartment(Comborg_name, com_id, "请选择"); //选择部门名称 CommonFuncCall.BindHandle(Combhandle_name, "", "请选择"); //选择经手人 if (status == WindowStatus.Edit || status == WindowStatus.Copy) { GetBillHeadEndMessage(ModifyPriceId); //获取单据头尾信息 GetBillPartsMsg(ModifyPriceId); //获取单据配件信息 } else if (status == WindowStatus.Add || status == WindowStatus.Copy) { txtorder_status_name.Caption = DataSources.GetDescription(DataSources.EnumAuditStatus.DRAFT, true);//获取单据状态 } } catch (Exception ex) { MessageBoxEx.Show(ex.Message); } }
private void UCStockTypeSummariz_Load(object sender, EventArgs e) { CommonFuncCall.BindCompany(cboCompany, "全部"); //绑定公司 CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); //绑定仓库 #region 显示合并表头 dgvReport.MergeColumnNames.Add("本期收入数量"); dgvReport.AddSpanHeader(8, 5, "本期收入数量"); dgvReport.MergeColumnNames.Add("本期发出数量"); dgvReport.AddSpanHeader(13, 6, "本期发出数量"); #endregion #region 报表合并表头 List <string> listRevenues = new List <string>(); listRevenues.Add("采购开单"); listRevenues.Add("盘点"); listRevenues.Add("调拨"); listRevenues.Add("其它收货"); listRevenues.Add("合计"); AddSpanRows("本期收入数量", listRevenues); List <string> listExpend = new List <string>(); listExpend.Add("销售开单"); listExpend.Add("调拨"); listExpend.Add("报损"); listExpend.Add("领料"); listExpend.Add("其它发货"); listExpend.Add("合计"); AddSpanRows("本期发出数量", listExpend); #endregion BindData(); }
private void UCAlarmDetail_Load(object sender, EventArgs e) { CommonFuncCall.BindCompany(cboCompany, "全部"); //绑定公司 CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); //绑定仓库 BindData(); }
//窗体加载 private void UCSaleProfitDetail_Load(object sender, EventArgs e) { //单据类型 CommonFuncCall.BindSaleOrderType(cboorder_type, true, "全部"); //客户类别 CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部"); //仓库 CommonFuncCall.BindWarehouse(cbowh_code, "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); //是否会员 DataSources.BindComBoxDataEnum(cboIsMember, typeof(DataSources.EnumYesNo), true); #region 初始化查询 txtcCust_code.Text = custCode; txtCust_name.Caption = custName; cboCust_type.SelectedValue = custType; cboIsMember.SelectedValue = isMember; cboorder_type.SelectedValue = orderType; cbowh_code.SelectedValue = whCode; txtcPartsType.Text = partsType; txtcVehicleModels.Text = vehicleModels; txtcparts_code.Text = partsCode; txtPartsName.Caption = partsName; txtdrawing_num.Caption = drawingNum; txtparts_brand.Caption = partsBrand; dicreate_time.StartDate = stratDate; dicreate_time.EndDate = endDate; cboCompany.SelectedValue = commpany; cboorg_id.SelectedValue = orgID; chbGift.Checked = isGift; #endregion BindData(); }
private void UCRepairMaterial_Load(object sender, EventArgs e) { CommonFuncCall.BindCompany(cboCompany, "全部"); CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); DataSources.BindComBoxDataEnum(cboThreeWarranty, typeof(DataSources.EnumYesNo), true); BindData(); }
/// <summary> /// 窗体初始加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCAllocationQuery_Load(object sender, EventArgs e) { try { base.SetBtnStatus(WindowStatus.View);// 根据窗体状态更改控件状态 //根据出入库单查询出入库单 dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString(); dateTimeEnd.Value = DateTime.Now.ToString(); CommonFuncCall.BindAllocationBillType(Comborder_type_name, true, "请选择"); //单据类型 CommonFuncCall.BindInStockBillingType(Combbilling_type_name, true, "请选择"); //开单类型 CommonFuncCall.BindWarehouse(CombWarehouse, "请选择"); //获取仓库名称 string com_id = GlobalStaticObj.CurrUserCom_Id; //公司ID CommonFuncCall.BindCompany(CombCompany, "全部"); //选择公司名称 CommonFuncCall.BindDepartment(CombDepartment, com_id, "全部"); //选择部门名称 CommonFuncCall.BindHandle(Combhandle, "", "全部"); //选择经办人 CommonFuncCall.BindHandle(CombOperator, "", "全部"); //选择操作人 //根据配件或往来单位查询出入库单 dateTimePartStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString(); dateTimePartEnd.Value = DateTime.Now.ToString(); CommonFuncCall.BindCompany(CombCompany, "全部");//公司ID CommonFuncCall.BindCompany(CombPartCompany, "全部"); CommonFuncCall.BindDepartment(CombDepartment, "", "全部"); CommonFuncCall.BindHandle(Combhandle, "", "全部"); CommonFuncCall.BindIs_Gift(Combis_gift, true);//是否赠品 } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
//窗体加载 private void UCSaleBillingZongHe_Load(object sender, EventArgs e) { //单据类型 CommonFuncCall.BindSaleOrderType(cboorder_type, true, "全部"); //发票类型 CommonFuncCall.BindComBoxDataSource(cboreceipt_type, "sys_receipt_type", "全部"); //结算单位 CommonFuncCall.BindBalanceWayByItem(cbobalance_way, "全部"); //客户类别 CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部"); //仓库 CommonFuncCall.BindWarehouse(cbowh_code, "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); #region 初始化查询 cboorder_type.SelectedValue = orderType; cboreceipt_type.SelectedValue = receiptType; cbobalance_way.SelectedValue = balanceWay; cbobalance_account.SelectedValue = balanceAccount; txtcCust_code.Text = supCode; txtCust_name.Caption = supName; cboCust_type.SelectedValue = supType; cbowh_code.SelectedValue = whCode; txtcparts_code.Text = partsCode; txtPartsName.Caption = partsName; txtdrawing_num.Caption = drawingNum; txtparts_brand.Caption = partsBrand; dicreate_time.StartDate = stratDate; dicreate_time.EndDate = endDate; cboCompany.SelectedValue = commpany; cboorg_id.SelectedValue = orgID; #endregion BindData(); }
/// <summary> /// 窗体加载初始化 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCStockReceiptManager_Load(object sender, EventArgs e) { try { //获取默认系统时间 dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString(); dateTimeEnd.Value = DateTime.Now.ToString(); //入库类型 CommonFuncCall.BindInOutType(ComBin_wh_type_name, true, "请选择"); //获取仓库名称 CommonFuncCall.BindWarehouse(ComBwh_name, "请选择"); //单据状态 CommonFuncCall.BindOrderStatus(ComBorder_status_name, true); //公司 CommonFuncCall.BindCompany(ComBcom_name, "全部"); //部门 CommonFuncCall.BindDepartment(ComBorg_name, "", "全部"); //经办人 CommonFuncCall.BindHandle(ComBhandle_name, "", "全部"); } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
private void UCWarehouseSummariz_Load(object sender, EventArgs e) { ReportCommon.BindWarehouseType(cboOrderType); CommonFuncCall.BindCompany(cboCompany, "全部"); //绑定公司 CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); //绑定仓库 BindData(); }
//页面加载 private void frmParts_Load(object sender, EventArgs e) { BindTree(); DataSources.BindComBoxDataEnum(cboDataSource, typeof(DataSources.EnumDataSources), true);//绑定数据源 CommonFuncCall.BindComBoxDataSource(cboPartsBrand, "sys_parts_brand", "全部"); CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); PartsLoad(); BindParts(tvPartsType.SelectedNode); }
private const string PartStatus = "status";//配件启停用标志 #endregion public UCStockQuery() { InitializeComponent(); CommonFuncCall.BindWarehouse(CombWarehouse, "请选择"); //获取仓库名称 CommonFuncCall.BindCompany(CombCompany, "全部"); //选择公司名称 base.ExportEvent += new ClickHandler(UCStockQuery_ExportEvent); UIAssistants.SetButtonStyle4QueryAndClear(btnPartSearch, btnPartClear); //美化查询和清除按钮控件 //DataGridViewEx.SetDataGridViewStyle(gvStockList, ApplyFlag);//美化表格控件 }
private void UCStockAging_Load(object sender, EventArgs e) { colNum2.Visible = false; colMoney2.Visible = false; colNum3.Visible = false; colMoney3.Visible = false; CommonFuncCall.BindCompany(cboCompany, "全部"); //绑定公司 CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); //绑定仓库 Merage(); BindData(); }
private void CheckBGuarantyStock_CheckedChanged(object sender, EventArgs e) { if (CheckBGuarantyStock.Checked) { CombWarehouse.Text = YutongPartStock; CombWarehouse.Enabled = false;//禁止选择此控件 } else { CombWarehouse.Enabled = true; CommonFuncCall.BindWarehouse(CombWarehouse, "请选择"); //获取仓库名称 } }
private void UCWarehouseDetail_Load(object sender, EventArgs e) { ReportCommon.BindWarehouseType(cboOrderType); CommonFuncCall.BindCompany(cboCompany, "全部"); //绑定公司 CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); //绑定仓库 BindData(); //双击查看明细,要手动调用权限 if (this.Name != "CL_BusinessAnalysis_Stock_WarehouseDet") { base.RoleButtonStstus("CL_BusinessAnalysis_Stock_WarehouseDet"); } }
//窗体加载 private void UCSaleProfitSummariz_Load(object sender, EventArgs e) { //单据类型 CommonFuncCall.BindSaleOrderType(cboorder_type, true, "全部"); //客户类别 CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部"); //仓库 CommonFuncCall.BindWarehouse(cbowh_code, "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); //是否会员 DataSources.BindComBoxDataEnum(cboIsMember, typeof(DataSources.EnumYesNo), true); BindData(); }
//窗体加载 private void UCPurchaseDiscountSummariz_Load(object sender, EventArgs e) { //单据类型 CommonFuncCall.BindPurchaseOrderType(cboorder_type, true, "全部"); //发票类型 CommonFuncCall.BindComBoxDataSource(cboreceipt_type, "sys_receipt_type", "全部"); //结算单位 CommonFuncCall.BindBalanceWayByItem(cbobalance_way, "全部"); //供应商类别 CommonFuncCall.BindComBoxDataSource(cbosup_type, "sys_supplier_category", "全部"); //仓库 CommonFuncCall.BindWarehouse(cbowh_code, "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); BindData(); }
//窗体加载 private void UCSaleBillingummariz_Load(object sender, EventArgs e) { //单据类型 CommonFuncCall.BindSaleOrderType(cboorder_type, true, "全部"); //发票类型 CommonFuncCall.BindComBoxDataSource(cboreceipt_type, "sys_receipt_type", "全部"); //结算单位 CommonFuncCall.BindBalanceWayByItem(cbobalance_way, "全部"); //客户类别 CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部"); //仓库 CommonFuncCall.BindWarehouse(cbowh_code, "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); BindData(); }
private void UCActualSummariz_Load(object sender, EventArgs e) { CommonFuncCall.BindCompany(cboCompany, "全部"); //绑定公司 CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); //绑定仓库 #region 显示合并表头 dgvReport.MergeColumnNames.Add("期初结存数量"); dgvReport.AddSpanHeader(7, 3, "期初结存数量"); dgvReport.MergeColumnNames.Add("本期收入数量"); dgvReport.AddSpanHeader(10, 4, "本期收入数量"); dgvReport.MergeColumnNames.Add("本期发出数量"); dgvReport.AddSpanHeader(14, 4, "本期发出数量"); dgvReport.MergeColumnNames.Add("期末结存数量"); dgvReport.AddSpanHeader(18, 3, "期末结存数量"); #endregion #region 报表合并表头 List <string> listInitial = new List <string>(); listInitial.Add("账面数量"); listInitial.Add("实际数量"); listInitial.Add("账实差"); AddSpanRows("期初结存数量", listInitial); List <string> listRevenues = new List <string>(); listRevenues.Add("实际数量(基)"); listRevenues.Add("实际数量(辅)"); listRevenues.Add("账面数量(基)"); listRevenues.Add("账面数量(辅)"); AddSpanRows("本期收入数量", listRevenues); List <string> listExpend = new List <string>(); listExpend.Add("实际数量(基)"); listExpend.Add("实际数量(辅)"); listExpend.Add("账面数量(基)"); listExpend.Add("账面数量(辅)"); AddSpanRows("本期发出数量", listExpend); List <string> listBalance = new List <string>(); listBalance.Add("账面数量"); listBalance.Add("实际数量"); listBalance.Add("帐实差"); AddSpanRows("期末结存数量", listBalance); #endregion BindData(); }
//窗体加载 private void UCPurchaseBillingDetail_Load(object sender, EventArgs e) { //设置负数要显示成红色的字段 listNegative = new List <string>(); listNegative.Add("单价"); listNegative.Add("采购货款"); listNegative.Add("税额"); listNegative.Add("金额"); //单据类型 CommonFuncCall.BindPurchaseOrderType(cboorder_type, true, "全部"); //发票类型 CommonFuncCall.BindComBoxDataSource(cboreceipt_type, "sys_receipt_type", "全部"); //结算单位 CommonFuncCall.BindBalanceWayByItem(cbobalance_way, "全部"); //供应商类别 CommonFuncCall.BindComBoxDataSource(cbosup_type, "sys_supplier_category", "全部"); //仓库 CommonFuncCall.BindWarehouse(cbowh_code, "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); #region 初始化查询 cboorder_type.SelectedValue = orderType; cboreceipt_type.SelectedValue = receiptType; cbobalance_way.SelectedValue = balanceWay; cbobalance_account.SelectedValue = balanceAccount; txtcsup_code.Text = supCode; txtsup_name.Caption = supName; cbosup_type.SelectedValue = supType; cbowh_code.SelectedValue = whCode; txtcparts_code.Text = partsCode; txtPartsName.Caption = partsName; txtdrawing_num.Caption = drawingNum; txtparts_brand.Caption = partsBrand; dicreate_time.StartDate = stratDate; dicreate_time.EndDate = endDate; cboCompany.SelectedValue = commpany; cboorg_id.SelectedValue = orgID; #endregion BindData(); //双击查看明细,要手动调用权限 if (this.Name != "CL_BusinessAnalysis_Purchase_BillingDet") { base.RoleButtonStstus("CL_BusinessAnalysis_Purchase_BillingDet"); } }
private void UCPaperSummariz_Load(object sender, EventArgs e) { CommonFuncCall.BindCompany(cboCompany, "全部"); //绑定公司 CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); //绑定仓库 #region 显示合并表头 dgvReport.MergeColumnNames.Add("上期结存"); dgvReport.AddSpanHeader(6, 3, "上期结存"); dgvReport.MergeColumnNames.Add("本期收入"); dgvReport.AddSpanHeader(9, 3, "本期收入"); dgvReport.MergeColumnNames.Add("本期发出"); dgvReport.AddSpanHeader(12, 3, "本期发出"); dgvReport.MergeColumnNames.Add("本期结存"); dgvReport.AddSpanHeader(15, 3, "本期结存"); #endregion #region 报表合并表头 List <string> listInitial = new List <string>(); listInitial.Add("单价"); listInitial.Add("数量"); listInitial.Add("金额"); AddSpanRows("上期结存", listInitial); List <string> listRevenues = new List <string>(); listRevenues.Add("单价"); listRevenues.Add("数量"); listRevenues.Add("金额"); AddSpanRows("本期收入", listRevenues); List <string> listExpend = new List <string>(); listExpend.Add("单价"); listExpend.Add("数量"); listExpend.Add("金额"); AddSpanRows("本期发出", listExpend); List <string> listBalance = new List <string>(); listBalance.Add("单价"); listBalance.Add("数量"); listBalance.Add("金额"); AddSpanRows("本期结存", listBalance); #endregion BindData(); }
//窗体加载 private void UCSaleReturnDetail_Load(object sender, EventArgs e) { //设置负数要显示成红色的字段 listNegative = new List <string>(); listNegative.Add("退回数量"); listNegative.Add("退回货款"); listNegative.Add("退回税额"); listNegative.Add("退回金额"); //客户类别 CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部"); //仓库 CommonFuncCall.BindWarehouse(cbowh_code, "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); dicreate_time.StartDate = DateTime.Now.ToString("yyyy-MM-01"); dicreate_time.EndDate = DateTime.Now.ToString("yyyy-MM-dd"); //合并列 dgvReport.MergeColumnNames.Add("退回配件"); dgvReport.AddSpanHeader(6, 6, "退回配件"); dgvReport.MergeColumnNames.Add("换出配件"); dgvReport.AddSpanHeader(12, 6, "换出配件"); //打印合并列 List <string> listTuiHui = new List <string>(); listTuiHui.Add("退回单位"); listTuiHui.Add("退回数量"); listTuiHui.Add("退回单价"); listTuiHui.Add("退回货款"); listTuiHui.Add("退回税额"); listTuiHui.Add("退回金额"); AddSpanRows("退回配件", listTuiHui); List <string> listHuanChu = new List <string>(); listHuanChu.Add("换出单位"); listHuanChu.Add("换出数量"); listHuanChu.Add("换出单价"); listHuanChu.Add("换出货款"); listHuanChu.Add("换出税额"); listHuanChu.Add("换出金额"); AddSpanRows("换出配件", listHuanChu); BindData(); }
private void UCPaperDetail_Load(object sender, EventArgs e) { CommonFuncCall.BindCompany(cboCompany, "全部"); //绑定公司 CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); //绑定仓库 #region 显示合并表头 dgvReport.MergeColumnNames.Add("收入"); dgvReport.AddSpanHeader(5, 3, "收入"); dgvReport.MergeColumnNames.Add("发出"); dgvReport.AddSpanHeader(8, 3, "发出"); dgvReport.MergeColumnNames.Add("结存"); dgvReport.AddSpanHeader(11, 3, "结存"); #endregion #region 报表合并表头 List <string> listRevenues = new List <string>(); listRevenues.Add("单价"); listRevenues.Add("数量"); listRevenues.Add("金额"); AddSpanRows("收入", listRevenues); List <string> listExpend = new List <string>(); listExpend.Add("单价"); listExpend.Add("数量"); listExpend.Add("金额"); AddSpanRows("支出", listExpend); List <string> listBalance = new List <string>(); listBalance.Add("单价"); listBalance.Add("数量"); listBalance.Add("金额"); AddSpanRows("结存", listBalance); #endregion BindData(); //双击查看明细,要手动调用权限 if (this.Name != "CL_BusinessAnalysis_Stock_PaperDet") { base.RoleButtonStstus("CL_BusinessAnalysis_Stock_PaperDet"); } }
/// <summary> /// 窗体初始化加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCStockQuery_Load(object sender, EventArgs e) { try { CommonFuncCall.BindWarehouse(CombWarehouse, "请选择"); //获取仓库名称 string com_id = GlobalStaticObj.CurrUserCom_Id; //公司ID CommonFuncCall.BindCompany(CombCompany, "全部"); //选择公司名称 //初始化配件分类 TreeVPartCategory.Nodes.Clear(); string PartCategory = "sys_parts_category";//配件分类 TreeNode root = new TreeNode(); root.Text = "全部配件"; root.Name = ""; TreeVPartCategory.Nodes.Add(root); CreateTreeViewChildNode(root, PartCategory); } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
private void UCRequisitionQuery_Load(object sender, EventArgs e) { try { //获取默认系统时间 dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString(); dateTimeEnd.Value = DateTime.Now.ToString(); //盘点单出入库状态 CommonFuncCall.BindBillInOutStatus(ComBInOutStatus, true, "请选择"); //获取仓库名称 CommonFuncCall.BindWarehouse(ComBwh_name, "请选择"); //公司 CommonFuncCall.BindCompany(ComBcom_name, "全部"); //部门 CommonFuncCall.BindDepartment(ComBorg_name, "", "全部"); //经办人 CommonFuncCall.BindHandle(ComBhandle_name, "", "全部"); } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }