BusinessPrint businessPrint; //业务打印功能 #region 初始化窗体 public UCSalePlanManager() { InitializeComponent(); base.AddEvent += new ClickHandler(UCSalePlanManager_AddEvent); base.CopyEvent += new ClickHandler(UCSalePlanManager_CopyEvent); base.EditEvent += new ClickHandler(UCSalePlanManager_EditEvent); base.DeleteEvent += new ClickHandler(UCSalePlanManager_DeleteEvent); base.VerifyEvent += new ClickHandler(UCSalePlanManager_VerifyEvent); base.SubmitEvent += new ClickHandler(UCSalePlanManager_SubmitEvent); base.ExportEvent += new ClickHandler(UCSalePlanManager_ExportEvent); base.ViewEvent += new ClickHandler(UCSalePlanManager_ViewEvent); base.PrintEvent += new ClickHandler(UCSalePlanManager_PrintEvent); base.SetEvent += new ClickHandler(UCSalePlanManager_SetEvent); #region 预览、打印设置 string printObject = "tb_parts_sale_plan"; string printTitle = "销售计划单"; List <string> listNotPrint = new List <string>(); listNotPrint.Add(sale_plan_id.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(gvSalePlanList, printObject, printTitle, paperSize, listNotPrint); #endregion }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化窗体 public UCOldPartsSendManager() { InitializeComponent(); BindOrderStatus(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 base.AddEvent += new ClickHandler(UCOldPartsReceiptManager_AddEvent); base.CopyEvent += new ClickHandler(UCOldPartsReceiptManager_CopyEvent); base.EditEvent += new ClickHandler(UCOldPartsReceiptManager_EditEvent); base.DeleteEvent += new ClickHandler(UCOldPartsReceiptManager_DeleteEvent); base.ViewEvent += new ClickHandler(UCOldPartsReceiptManager_ViewEvent); base.VerifyEvent += new ClickHandler(UCOldPartsReceiptManager_VerifyEvent); base.SubmitEvent += new ClickHandler(UCOldPartsReceiptManager_SubmitEvent); base.PrintEvent += new ClickHandler(UCOldPartsSendManager_PrintEvent); base.SetEvent += new ClickHandler(UCOldPartsSendManager_SetEvent); SetQuick(); base.SetContentMenuScrip(dgvRData); #region 预览、打印设置 string printObject = "tb_maintain_oldpart_receiv_send_O"; string printTitle = "旧件发货单"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(oldpart_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); #endregion }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化窗体 public UCRepairBalanceManager() { InitializeComponent(); CommonCtrl.BindComboBoxByDictionarr(cobPayType, "sys_repair_pay_methods", true); //绑定维修付费方式 CommonCtrl.BindComboBoxByDictionarr(cobRepType, "sys_repair_category", true); //绑定维修类别 BindOrderStatus(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 base.AddEvent += new ClickHandler(UCRepairBalanceManager_AddEvent); base.CopyEvent += new ClickHandler(UCRepairBalanceManager_CopyEvent); base.EditEvent += new ClickHandler(UCRepairBalanceManager_EditEvent); base.DeleteEvent += new ClickHandler(UCRepairBalanceManager_DeleteEvent); base.ViewEvent += new ClickHandler(UCRepairBalanceManager_ViewEvent); base.VerifyEvent += new ClickHandler(UCRepairBalanceManager_VerifyEvent); base.BalanceEvent += new ClickHandler(UCRepairBalanceManager_BalanceEvent); base.PrintEvent += new ClickHandler(UCRepairBalanceManager_PrintEvent); base.SetEvent += new ClickHandler(UCRepairBalanceManager_SetEvent); SetQuick(); base.SetContentMenuScrip(dgvRData); #region 预览、打印设置 string printObject = "tb_maintain_settlement_info"; string printTitle = "维修结算单"; List <string> listNotPrint = new List <string>(); listNotPrint.Add(maintain_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); #endregion }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化窗体 /// <summary> 初始化窗体 /// </summary> public UCPurchasePlanOrderManagView() { InitializeComponent(); //base.SetBaseButtonStatus(); //base.SetButtonVisiableManagerSearch(); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchasePlanOrderList, NotReadOnlyColumnsName); //禁止列表自增列 gvPurchasePlanOrderList.AutoGenerateColumns = false; dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1); dateTimeEnd.Value = DateTime.Now; string com_id = GlobalStaticObj.CurrUserCom_Id;//公司ID CommonFuncCall.BindDepartment(ddlDepartment, com_id, "全部"); CommonFuncCall.BindHandle(ddlResponsiblePerson, "", "全部"); CommonFuncCall.BindPurchasePlanFinishStatus(ddlFinishStatus, true); BindgvPurchasePlanOrderList(); gvPurchasePlanOrderList.CellMouseClick += new DataGridViewCellMouseEventHandler(gvPurchasePlanOrderList_CellMouseClick); base.ExportEvent += new ClickHandler(UCPurchasePlanOrderManagView_ExportEvent); base.ViewEvent += new ClickHandler(UCPurchasePlanOrderManagView_ViewEvent); base.PrintEvent += new ClickHandler(UCPurchasePlanOrderManagView_PrintEvent); base.SetEvent += new ClickHandler(UCPurchasePlanOrderManagView_SetEvent); #region 预览、打印设置 string printObject = "tb_parts_purchase_plan_s"; string printTitle = "采购计划单查询"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(plan_id.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(gvPurchasePlanOrderList, printObject, printTitle, paperSize, listNotPrint); #endregion }
BusinessPrint businessPrint;//业务打印功能 #region 窗体初始化 /// <summary> 窗体初始化 /// </summary> public UCPurchaseBillManang() { InitializeComponent(); dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1); dateTimeEnd.Value = DateTime.Now; base.AddEvent += new ClickHandler(UCPurchaseBillManang_AddEvent); base.EditEvent += new ClickHandler(UCPurchaseBillManang_EditEvent); base.CopyEvent += new ClickHandler(UCPurchaseBillManang_CopyEvent); base.DeleteEvent += new ClickHandler(UCPurchaseBillManang_DeleteEvent); base.VerifyEvent += new ClickHandler(UCPurchaseBillManang_VerifyEvent); base.SubmitEvent += new ClickHandler(UCPurchaseBillManang_SubmitEvent); base.ExportEvent += new ClickHandler(UCPurchaseBillManang_ExportEvent); base.ViewEvent += new ClickHandler(UCPurchaseBillManang_ViewEvent); base.PrintEvent += new ClickHandler(UCPurchaseBillManang_PrintEvent); base.SetEvent += new ClickHandler(UCPurchaseBillManang_SetEvent); #region 预览、打印设置 string printObject = "tb_parts_purchase_billing"; string printTitle = "采购开单"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(purchase_billing_id.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(gvPurchaseOrderList, printObject, printTitle, paperSize, listNotPrint); #endregion }
public UCCustomerManager() { InitializeComponent(); UIAssistants.SetButtonStyle4QueryAndClear(btn_query, btn_clear, true); //设置查询按钮和清除按钮样式 DataGridViewEx.SetDataGridViewStyle(dgv_table, create_time); //设置数据表格样式,并将最后一列填充其余空白 Load += (sender, args) => UIAssistants.SetDataGridViewCheckColumn(dgv_table, colCheck); Init(); //初始化方法 SetContentMenuScrip(dgv_table); #region 预览、打印设置 string printObject = "tb_customer"; string printTitle = "客户档案"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(cust_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgv_table, printObject, printTitle, paperSize, listNotPrint); #endregion }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化窗体 public UCDispatchManager() { InitializeComponent(); CommonCtrl.BindComboBoxByDictionarr(cobPayType, "sys_repair_pay_methods", true);//绑定维修付费方式 BindOrderStatus(); SetTopbuttonShow(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 base.ViewEvent += new ClickHandler(UCDispatchManager_ViewEvent); base.Delete += new ClickHandler(UCDispatchManager_Delete); base.QCEvent += new ClickHandler(UCDispatchManager_QCEvent); base.BalanceEvent += new ClickHandler(UCDispatchManager_BalanceEvent); base.PrintEvent += new ClickHandler(UCDispatchManager_PrintEvent); base.SetEvent += new ClickHandler(UCDispatchManager_SetEvent); SetQuick(); #region 预览、打印设置 string printObject = "tb_maintain_info_dd"; string printTitle = "维修调度单"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(maintain_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); #endregion }
private void UCDictionaryManager_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name); DataGridViewEx.SetDataGridViewStyle(dgvDicList); DataSources.BindComBoxDataEnum(cobDataSources, typeof(DataSources.EnumDataSources), true);//数据来源 base.btnCopy.Visible = false; base.btnStatus.Visible = false; base.btnAdd.Visible = false; base.btnEdit.Visible = false; base.btnSave.Visible = false; base.btnCancel.Visible = false; base.btnDelete.Visible = false; base.SetBtnStatus(WindowStatus.View); base.ExportEvent += new ClickHandler(UCDictionaryManager_ExportEvent); base.ViewEvent += new ClickHandler(UCDictionaryManager_ViewEvent); base.PrintEvent += new ClickHandler(UCDictionaryManager_PrintEvent); dtpStart.Value = ""; dtpEnd.Value = ""; btnSearch_Click(null, null); List<string> listNotPrint = new List<string>(); PaperSize paperSize = new PaperSize(); paperSize.Width = 360; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvDicList, "v_dictionaries", "字典码表", paperSize, listNotPrint); SetQuick(); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear, true); //设置查询按钮和清除按钮样式 }
public UCFeedbackManager() { InitializeComponent(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear, true); //设置查询按钮和清除按钮样式 DataGridViewEx.SetDataGridViewStyle(dgvQData, drtxt_status); //设置数据表格样式,并将最后一列填充其余空白 Init(); Load += (sender, args) => UIAssistants.SetDataGridViewCheckColumn(dgvQData, drchk_check); SetContentMenuScrip(dgvQData); #region 预览、打印设置 string printObject = "tb_CustomerSer_Feedback"; string printTitle = "信息反馈"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(drtxt_Feedback_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvQData, printObject, printTitle, paperSize, listNotPrint); #endregion }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化窗体 public UCOldPartsPalautusManager() { InitializeComponent(); BindOrderStatus(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 BindStatusYT(); // 绑定宇通旧件回收单状态 base.AddEvent += new ClickHandler(UCOldPartsPalautusManager_AddEvent); base.EditEvent += new ClickHandler(UCOldPartsPalautusManager_EditEvent); base.DeleteEvent += new ClickHandler(UCOldPartsPalautusManager_DeleteEvent); base.SubmitEvent += new ClickHandler(UCOldPartsPalautusManager_SubmitEvent); base.VerifyEvent += new ClickHandler(UCOldPartsPalautusManager_VerifyEvent); base.ViewEvent += new ClickHandler(UCOldPartsPalautusManager_ViewEvent); base.ConfirmEvent += new ClickHandler(UCOldPartsPalautusManager_ConfirmEvent); base.PrintEvent += new ClickHandler(UCOldPartsPalautusManager_PrintEvent); base.SetEvent += new ClickHandler(UCOldPartsPalautusManager_SetEvent); #region 预览、打印设置 string printObject = "tb_maintain_oldpart_recycle"; string printTitle = "宇通旧件返厂单"; List <string> listNotPrint = new List <string>(); listNotPrint.Add(return_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); #endregion }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化窗体 public UCOldPartsPalautusManager() { InitializeComponent(); BindOrderStatus(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 BindStatusYT();// 绑定宇通旧件回收单状态 base.AddEvent += new ClickHandler(UCOldPartsPalautusManager_AddEvent); base.EditEvent += new ClickHandler(UCOldPartsPalautusManager_EditEvent); base.DeleteEvent += new ClickHandler(UCOldPartsPalautusManager_DeleteEvent); base.SubmitEvent += new ClickHandler(UCOldPartsPalautusManager_SubmitEvent); base.VerifyEvent += new ClickHandler(UCOldPartsPalautusManager_VerifyEvent); base.ViewEvent += new ClickHandler(UCOldPartsPalautusManager_ViewEvent); base.ConfirmEvent += new ClickHandler(UCOldPartsPalautusManager_ConfirmEvent); base.PrintEvent += new ClickHandler(UCOldPartsPalautusManager_PrintEvent); base.SetEvent += new ClickHandler(UCOldPartsPalautusManager_SetEvent); #region 预览、打印设置 string printObject = "tb_maintain_oldpart_recycle"; string printTitle = "宇通旧件返厂单"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(return_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); #endregion }
/// <summary> /// 初始化窗体 /// </summary> public UCYTManager() { InitializeComponent(); base.AddEvent += new ClickHandler(UCYTManager_AddEvent); base.CopyEvent += new ClickHandler(UCYTManager_CopyEvent); base.EditEvent += new ClickHandler(UCYTManager_EditEvent); base.DeleteEvent += new ClickHandler(UCYTManager_DeleteEvent); base.VerifyEvent += new ClickHandler(UCYTManager_VerifyEvent); base.SubmitEvent += new ClickHandler(UCYTManager_SubmitEvent); base.ExportEvent += new ClickHandler(UCYTManager_ExportEvent); base.ViewEvent += new ClickHandler(UCYTManager_ViewEvent); base.PrintEvent += new ClickHandler(UCYTManager_PrintEvent); base.SetEvent += new ClickHandler(UCYTManager_SetEvent); #region 预览、打印设置 string printObject = "tb_parts_purchase_order_ytcg"; string printTitle = "宇通采购订单"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(purchase_order_yt_id.Name); listNotPrint.Add(viewfile.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(gvYTPurchaseOrderList, printObject, printTitle, paperSize, listNotPrint); #endregion }
public UCVehicleManage() { InitializeComponent(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 base.DeleteEvent += new ClickHandler(UCVehicleManage_DeleteEvent); base.EditEvent += new ClickHandler(UCVehicleManage_EditEvent); base.CopyEvent += new ClickHandler(UCVehicleManage_CopyEvent); base.AddEvent += new ClickHandler(UCVehicleManage_AddEvent); base.StatusEvent += new ClickHandler(UCVehicleManage_StatusEvent); base.ViewEvent += new ClickHandler(UCVehicleManage_ViewEvent); base.ExportEvent -= new ClickHandler(UC_ExportEvent); base.ExportEvent += new ClickHandler(UC_ExportEvent); base.PrintEvent += new ClickHandler(UCVehicleManage_PrintEvent); base.SetContentMenuScrip(dgvData); SetQuick(); #region 预览、打印设置 string printObject = "tb_vehicle"; string printTitle = "车辆档案"; List <string> listNotPrint = new List <string>(); listNotPrint.Add(v_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvData, printObject, printTitle, paperSize, listNotPrint); #endregion }
private void UCOrganizationManager_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name);//角色按钮权限-是否隐藏 //dgvorganization.ReadOnly = false; this.dtpcreate_time.Value = DateTime.Now.AddMonths(-1); this.dtpcreate_time_end.Value = DateTime.Now.Date.Add(new TimeSpan(23, 59, 59)); this.BindPageData(); this.BindTree(); List <string> listNotPrint = new List <string>(); //listNotPrint.Add("create_time"); //listNotPrint.Add("update_time"); listNotPrint.Add(colCheck.Name); PaperSize printSize = new PaperSize("组织打印", dgvorganization.Width / 4 + 25, dgvorganization.Height / 2 + 20); businessPrint = new BusinessPrint(dgvorganization, "tb_organization", "组织档案", printSize, listNotPrint); this.page.PageIndexChanged += new ServiceStationClient.ComponentUI.WinFormPager.EventHandler(this.page_PageIndexChanged); DataSources.BindComDataGridViewBoxColumnDataEnum(this.status, typeof(DataSources.EnumStatus)); MessageProcessor.ComOrginfoUpdate += new EventHandler(MessageProcessor_ComOrginfoUpdate); base.SetContentMenuScrip(dgvorganization); }
BusinessPrint businessPrint; //业务打印功能 #endregion public UCAccountVerificationManage() { InitializeComponent(); this.AddEvent += new ClickHandler(UCAccountVerificationManage_AddEvent); this.EditEvent += new ClickHandler(UCAccountVerificationManage_EditEvent); this.CopyEvent += new ClickHandler(UCAccountVerificationManage_CopyEvent); this.ViewEvent += new ClickHandler(UCAccountVerificationManage_ViewEvent); this.DeleteEvent += new ClickHandler(UCAccountVerificationManage_DeleteEvent); this.VerifyEvent += new ClickHandler(UCAccountVerificationManage_VerifyEvent); this.SubmitEvent += new ClickHandler(UCAccountVerificationManage_SubmitEvent); this.PrintEvent += new ClickHandler(UCAccountVerificationManage_PrintEvent); this.ExportEvent += new ClickHandler(UCAccountVerificationManage_ExportEvent); dgvVerification.ReadOnly = false; dgvVerification.HeadCheckChanged += new DataGridViewEx.DelegateOnClick(dgvVerification_HeadCheckChanged); foreach (DataGridViewColumn dgvc in dgvVerification.Columns) { if (dgvc.Name == colChk.Name) { continue; } dgvc.ReadOnly = true; } List <string> listNotPrint = new List <string>(); listNotPrint.Add(colOrgId.Name); listNotPrint.Add(colHandle.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvVerification, "tb_account_verification", "往来核销", paperSize, listNotPrint); }
/// <summary> /// 初始化窗体方法 /// </summary> public UCSupplierManager() { InitializeComponent(); //禁止列表自增列 dgvSupplierList.AutoGenerateColumns = false; base.AddEvent += new ClickHandler(UCSupplierManager_AddEvent); base.CopyEvent += new ClickHandler(UCSupplierManager_CopyEvent); base.EditEvent += new ClickHandler(UCSupplierManager_EditEvent); base.DeleteEvent += new ClickHandler(UCSupplierManager_DeleteEvent); base.StatusEvent += new ClickHandler(UCSupplierManager_StatusEvent); base.ExportEvent += new ClickHandler(UCSupplierManager_ExportEvent); base.ViewEvent += new ClickHandler(UCSupplierManager_ViewEvent); dateTimeStart.Value = DateTime.Now.AddMonths(-1); dateTimeEnd.Value = DateTime.Now; List <string> listNotPrint = new List <string>(); listNotPrint.Add(create_time.Name); PaperSize printsize = new PaperSize("printsize", dgvSupplierList.Width / 4 + 10, dgvSupplierList.Height); businessPrint = new BusinessPrint(dgvSupplierList, "tb_supplier", "供应商档案", printsize, listNotPrint); BindDllInfo(); BindgvSupplierList(); }
BusinessPrint businessPrint;//业务打印功能 #region 初始化窗体 public UCSalePlanManager() { InitializeComponent(); base.AddEvent += new ClickHandler(UCSalePlanManager_AddEvent); base.CopyEvent += new ClickHandler(UCSalePlanManager_CopyEvent); base.EditEvent += new ClickHandler(UCSalePlanManager_EditEvent); base.DeleteEvent += new ClickHandler(UCSalePlanManager_DeleteEvent); base.VerifyEvent += new ClickHandler(UCSalePlanManager_VerifyEvent); base.SubmitEvent += new ClickHandler(UCSalePlanManager_SubmitEvent); base.ExportEvent += new ClickHandler(UCSalePlanManager_ExportEvent); base.ViewEvent += new ClickHandler(UCSalePlanManager_ViewEvent); base.PrintEvent += new ClickHandler(UCSalePlanManager_PrintEvent); base.SetEvent += new ClickHandler(UCSalePlanManager_SetEvent); #region 预览、打印设置 string printObject = "tb_parts_sale_plan"; string printTitle = "销售计划单"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(sale_plan_id.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(gvSalePlanList, printObject, printTitle, paperSize, listNotPrint); #endregion }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化窗体 public UCFMaterialReturnManager() { InitializeComponent(); BindOrderStatus(); // BindWarehouseWay(); base.ViewEvent += new ClickHandler(UCFMaterialReturnManager_ViewEvent); base.DeleteEvent += new ClickHandler(UCFMaterialReturnManager_DeleteEvent); base.EditEvent += new ClickHandler(UCFMaterialReturnManager_EditEvent); base.VerifyEvent += new ClickHandler(UCFMaterialReturnManager_VerifyEvent); base.SubmitEvent += new ClickHandler(UCFMaterialReturnManager_SubmitEvent); base.ImportEvent += new ClickHandler(UCFMaterialReturnManager_ImportEvent); base.PrintEvent += new ClickHandler(UCFMaterialReturnManager_PrintEvent); base.ExportEvent += new ClickHandler(UCFMaterialReturnManager_ExportEvent); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 base.SetEvent += new ClickHandler(UCFMaterialReturnManager_SetEvent); SetQuick(); base.SetContentMenuScrip(dgvRData); #region 预览、打印设置 string printObject = "tb_maintain_refund_material"; string printTitle = "领料退货单"; List <string> listNotPrint = new List <string>(); listNotPrint.Add(refund_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); #endregion }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化窗体 public UCRepairRescueManager() { InitializeComponent(); BindOrderStatus(); CommonCtrl.BindComboBoxByDictionarr(cobRescueType, "sys_rescue_type", true);//救援类型 UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 base.AddEvent += new ClickHandler(UCRepairRescueManager_AddEvent); base.CopyEvent += new ClickHandler(UCRepairRescueManager_CopyEvent); base.EditEvent += new ClickHandler(UCRepairRescueManager_EditEvent); base.DeleteEvent += new ClickHandler(UCRepairRescueManager_DeleteEvent); base.ViewEvent += new ClickHandler(UCRepairRescueManager_ViewEvent); base.VerifyEvent += new ClickHandler(UCRepairRescueManager_VerifyEvent); base.BalanceEvent += new ClickHandler(UCRepairRescueManager_BalanceEvent); base.PrintEvent += new ClickHandler(UCRepairRescueManager_PrintEvent); base.SetEvent += new ClickHandler(UCRepairRescueManager_SetEvent); SetQuick(); base.SetContentMenuScrip(dgvRData); #region 预览、打印设置 string printObject = "tb_maintain_rescue_info"; string printTitle = "救援单"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(rescue_id.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); #endregion }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化窗体 public UCOldPartsReceiptManager() { InitializeComponent(); BindOrderStatus(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 base.AddEvent += new ClickHandler(UCOldPartsReceiptManager_AddEvent); base.CopyEvent += new ClickHandler(UCOldPartsReceiptManager_CopyEvent); base.EditEvent += new ClickHandler(UCOldPartsReceiptManager_EditEvent); base.DeleteEvent += new ClickHandler(UCOldPartsReceiptManager_DeleteEvent); base.ViewEvent += new ClickHandler(UCOldPartsReceiptManager_ViewEvent); base.VerifyEvent += new ClickHandler(UCOldPartsReceiptManager_VerifyEvent); base.SubmitEvent += new ClickHandler(UCOldPartsReceiptManager_SubmitEvent); base.PrintEvent += new ClickHandler(UCOldPartsReceiptManager_PrintEvent); base.SetEvent += new ClickHandler(UCOldPartsReceiptManager_SetEvent); SetQuick(); base.SetContentMenuScrip(dgvRData); #region 预览、打印设置 string printObject = "tb_maintain_oldpart_receiv_send"; string printTitle = "旧件收货单"; List <string> listNotPrint = new List <string>(); listNotPrint.Add(oldpart_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); #endregion }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化窗体 public UCFMaterialReturnManager() { InitializeComponent(); BindOrderStatus(); // BindWarehouseWay(); base.ViewEvent += new ClickHandler(UCFMaterialReturnManager_ViewEvent); base.DeleteEvent += new ClickHandler(UCFMaterialReturnManager_DeleteEvent); base.EditEvent += new ClickHandler(UCFMaterialReturnManager_EditEvent); base.VerifyEvent += new ClickHandler(UCFMaterialReturnManager_VerifyEvent); base.SubmitEvent += new ClickHandler(UCFMaterialReturnManager_SubmitEvent); base.ImportEvent += new ClickHandler(UCFMaterialReturnManager_ImportEvent); base.PrintEvent += new ClickHandler(UCFMaterialReturnManager_PrintEvent); base.ExportEvent += new ClickHandler(UCFMaterialReturnManager_ExportEvent); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 base.SetEvent += new ClickHandler(UCFMaterialReturnManager_SetEvent); SetQuick(); base.SetContentMenuScrip(dgvRData); #region 预览、打印设置 string printObject = "tb_maintain_refund_material"; string printTitle = "领料退货单"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(refund_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); #endregion }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化 public ReserveOrder() { InitializeComponent(); CommonCtrl.BindComboBoxByDictionarr(cobPayType, "sys_repair_pay_methods", true);//绑定维修付费方式 this.BindOrderStatus(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 base.AddEvent += new ClickHandler(ReserveOrder_AddEvent); base.CopyEvent += new ClickHandler(ReserveOrder_CopyEvent); base.EditEvent += new ClickHandler(ReserveOrder_EditEvent); base.DeleteEvent += new ClickHandler(ReserveOrder_DeleteEvent); base.ViewEvent += new ClickHandler(ReserveOrder_ViewEvent); base.SubmitEvent += new ClickHandler(ReserveOrder_SubmitEvent); base.VerifyEvent += new ClickHandler(ReserveOrder_VerifyEvent); base.PrintEvent += new ClickHandler(ReserveOrder_PrintEvent); base.SetEvent += new ClickHandler(ReserveOrder_SetEvent); SetQuick(); base.SetContentMenuScrip(dgvRData); #region 预览、打印设置 string printObject = "tb_maintain_reservation"; string printTitle = "预约单"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(reserv_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRData , printObject, printTitle, paperSize, listNotPrint); #endregion }
public UCVehicleManage() { InitializeComponent(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 base.DeleteEvent += new ClickHandler(UCVehicleManage_DeleteEvent); base.EditEvent += new ClickHandler(UCVehicleManage_EditEvent); base.CopyEvent += new ClickHandler(UCVehicleManage_CopyEvent); base.AddEvent += new ClickHandler(UCVehicleManage_AddEvent); base.StatusEvent += new ClickHandler(UCVehicleManage_StatusEvent); base.ViewEvent += new ClickHandler(UCVehicleManage_ViewEvent); base.ExportEvent -= new ClickHandler(UC_ExportEvent); base.ExportEvent += new ClickHandler(UC_ExportEvent); base.PrintEvent += new ClickHandler(UCVehicleManage_PrintEvent); base.SetContentMenuScrip(dgvData); SetQuick(); #region 预览、打印设置 string printObject = "tb_vehicle"; string printTitle = "车辆档案"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(v_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvData, printObject, printTitle, paperSize, listNotPrint); #endregion }
private void UCDictionaryManager_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name); DataGridViewEx.SetDataGridViewStyle(dgvDicList); DataSources.BindComBoxDataEnum(cobDataSources, typeof(DataSources.EnumDataSources), true);//数据来源 base.btnCopy.Visible = false; base.btnStatus.Visible = false; base.btnAdd.Visible = false; base.btnEdit.Visible = false; base.btnSave.Visible = false; base.btnCancel.Visible = false; base.btnDelete.Visible = false; base.SetBtnStatus(WindowStatus.View); base.ExportEvent += new ClickHandler(UCDictionaryManager_ExportEvent); base.ViewEvent += new ClickHandler(UCDictionaryManager_ViewEvent); base.PrintEvent += new ClickHandler(UCDictionaryManager_PrintEvent); dtpStart.Value = ""; dtpEnd.Value = ""; btnSearch_Click(null, null); List <string> listNotPrint = new List <string>(); PaperSize paperSize = new PaperSize(); paperSize.Width = 360; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvDicList, "v_dictionaries", "字典码表", paperSize, listNotPrint); SetQuick(); }
public UCFeedbackManager() { InitializeComponent(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear, true); //设置查询按钮和清除按钮样式 DataGridViewEx.SetDataGridViewStyle(dgvQData, drtxt_status); //设置数据表格样式,并将最后一列填充其余空白 Init(); Load += (sender, args) => UIAssistants.SetDataGridViewCheckColumn(dgvQData, drchk_check); SetContentMenuScrip(dgvQData); #region 预览、打印设置 string printObject = "tb_CustomerSer_Feedback"; string printTitle = "信息反馈"; List <string> listNotPrint = new List <string>(); listNotPrint.Add(drtxt_Feedback_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvQData, printObject, printTitle, paperSize, listNotPrint); #endregion }
/// <summary> /// 窗体加载方法 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCWorkingTimeManager_Load(object sender, EventArgs e) { PaperSize printsize = new PaperSize("dgv",gvWorkList.Size.Width/3, gvWorkList.Size.Height/2); businessPrint = new BusinessPrint(gvWorkList, "tb_workhours", "工时档案", printsize, new List<string>()); gvWorkList.ReadOnly = false; base.SetBtnStatus(WindowStatus.View); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 }
/// <summary> /// 窗体加载方法 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCWorkingTimeManager_Load(object sender, EventArgs e) { PaperSize printsize = new PaperSize("dgv", gvWorkList.Size.Width / 3, gvWorkList.Size.Height / 2); businessPrint = new BusinessPrint(gvWorkList, "tb_workhours", "工时档案", printsize, new List <string>()); gvWorkList.ReadOnly = false; base.SetBtnStatus(WindowStatus.View); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 }
BusinessPrint businessPrint;//业务打印功能 #endregion #region --构造函数 public UCBulletinManage() { InitializeComponent(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 DataGridViewEx.SetDataGridViewStyle(this.dgvRecord); //设置数据表格样式,并将最后一列填充其余空白 List<string> listNotPrint = new List<string>(); PaperSize paperSize = new PaperSize(); paperSize.Width = 260; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRecord, "sys_announcement", "公告管理", paperSize, listNotPrint); this.reportPrint = PrintProvider.GetReportPrintHandler(); this.reportPrint.SetPrint(210, 297, new Padding(10, 15, 10, 8)); }
//加载 private void UCVehicleModelsManage_Load(object sender, EventArgs e) { BindSearch(); diCreate.StartDate = DateTime.Now.AddYears(-1).ToString(diCreate.customFormat); diCreate.EndDate = DateTime.Now.ToString(diCreate.customFormat); BindData(); base.SetContentMenuScrip(dgvVehicleModels); List <string> listNotPrint = new List <string>(); PaperSize paperSize = new PaperSize(); paperSize.Width = 235; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvVehicleModels, "tb_vehicle_models", "车型档案", paperSize, listNotPrint); }
BusinessPrint businessPrint;//业务打印功能 #endregion #region --构造函数 public UCBulletinManage() { InitializeComponent(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 DataGridViewEx.SetDataGridViewStyle(this.dgvRecord); //设置数据表格样式,并将最后一列填充其余空白 List <string> listNotPrint = new List <string>(); PaperSize paperSize = new PaperSize(); paperSize.Width = 260; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRecord, "sys_announcement", "公告管理", paperSize, listNotPrint); this.reportPrint = PrintProvider.GetReportPrintHandler(); this.reportPrint.SetPrint(210, 297, new Padding(10, 15, 10, 8)); }
//加载 private void UCContactsManage_Load(object sender, EventArgs e) { diCreate.StartDate = DateTime.Now.AddYears(-1).ToString(diCreate.customFormat); diCreate.EndDate = DateTime.Now.ToString(diCreate.customFormat); BindSearch(); BindData(); List <string> listNotPrint = new List <string>(); PaperSize paperSize = new PaperSize(); paperSize.Width = 180; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvContacts, "v_contacts", "联系人档案", paperSize, listNotPrint); base.SetContentMenuScrip(this.dgvContacts); }
BusinessPrint businessPrint; //业务打印功能 #endregion public UCReceivableManage(DataSources.EnumOrderType orderType) { InitializeComponent(); //工具栏事件 this.AddEvent += new ClickHandler(UCReceivableManage_AddEvent); this.EditEvent += new ClickHandler(UCReceivableManage_EditEvent); this.CopyEvent += new ClickHandler(UCReceivableManage_CopyEvent); this.DeleteEvent += new ClickHandler(UCReceivableManage_DeleteEvent); this.ViewEvent += new ClickHandler(UCReceivableManage_ViewEvent); this.VerifyEvent += new ClickHandler(UCReceivableManage_VerifyEvent); this.SubmitEvent += new ClickHandler(UCReceivableManage_SubmitEvent); this.PrintEvent += new ClickHandler(UCReceivableManage_PrintEvent); this.ExportEvent += new ClickHandler(UCReceivableManage_ExportEvent); base.SetEvent += new ClickHandler(UCReceivableManage_SetEvent); this.orderType = orderType;//单据类型 DataGridViewEx.SetDataGridViewStyle(dgvBillReceivable, colOrderStatus); dgvBillReceivable.ReadOnly = false; dgvBillReceivable.HeadCheckChanged += new DataGridViewEx.DelegateOnClick(dgvBillReceivable_HeadCheckChanged); foreach (DataGridViewColumn dgvc in dgvBillReceivable.Columns) { if (dgvc.Name == colCheck.Name) { continue; } dgvc.ReadOnly = true; } SetLable(); #region 打印预览 string printObject = "tb_receivable"; string printTitle = "财务收款单"; if (orderType == DataSources.EnumOrderType.PAYMENT) { printObject = "tb_payment"; printTitle = "财务付款单"; } List <string> listNotPrint = new List <string>(); listNotPrint.Add(colOrgId.Name); listNotPrint.Add(colHandle.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvBillReceivable, printObject, printTitle, paperSize, listNotPrint); #endregion //速查 SetQuick(); colDealingsBalance.ValueType = typeof(decimal); //负数格式化红色 ControlsConfig.NegativeFormatting(dgvBillReceivable); }
//加载 private void UCContactsManage_Load(object sender, EventArgs e) { diCreate.StartDate = DateTime.Now.AddYears(-1).ToString(diCreate.customFormat); diCreate.EndDate = DateTime.Now.ToString(diCreate.customFormat); BindSearch(); BindData(); List <string> listNotPrint = new List <string>(); PaperSize paperSize = new PaperSize(); paperSize.Width = 200; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvContacts, "v_contacts", "联系人档案", paperSize, listNotPrint); base.SetContentMenuScrip(this.dgvContacts); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear, true); //设置查询按钮和清除按钮样式 }
void UCYTManagerView_SetEvent(object sender, EventArgs e) { if (tabControlEx1.SelectedIndex == 0) { printObject = "tb_parts_purchase_order_s"; printTitle = "按宇通采购订单查询"; businessPrint = new BusinessPrint(gvYTPurchaseOrderList, printObject, printTitle, paperSize, listNotPrint); businessPrint.PrintSet(gvYTPurchaseOrderList); } else if (tabControlEx1.SelectedIndex == 1) { printObject = "purchase_order_parts_search"; printTitle = "按配件或供应商查询"; businessPrint = new BusinessPrint(gvPurchaseList2, printObject, printTitle, paperSize, listNotPrint); businessPrint.PrintSet(gvPurchaseList2); } }
void UCSaleOrderManagerSearch_PrintEvent(object sender, EventArgs e) { if (tabControlEx1.SelectedIndex == 0) { printObject = "sale_order_parts_s"; printTitle = "按销售订单查询"; businessPrint = new BusinessPrint(gvPurchaseOrderList, printObject, printTitle, paperSize, listNotPrint); businessPrint.Print(gvPurchaseOrderList.GetBoundData()); } else if (tabControlEx1.SelectedIndex == 1) { printObject = "sale_order_parts_search"; printTitle = "销售订单按配件或客户查询"; businessPrint = new BusinessPrint(gvPurchaseList2, printObject, printTitle, paperSize, listNotPrint); businessPrint.Print(gvPurchaseList2.GetBoundData()); } }
void UCSaleBillManangSearch_SetEvent(object sender, EventArgs e) { if (tabControlEx1.SelectedIndex == 0) { printObject = "tb_parts_sale_billing_s"; printTitle = "按销售开单查询"; businessPrint = new BusinessPrint(gvPurchaseOrderList, printObject, printTitle, paperSize, listNotPrint); businessPrint.PrintSet(gvPurchaseOrderList); } else if (tabControlEx1.SelectedIndex == 1) { printObject = "tb_parts_sale_billing_search"; printTitle = "销售开单按配件或客户查询"; businessPrint = new BusinessPrint(gvPurchaseList2, printObject, printTitle, paperSize, listNotPrint); businessPrint.PrintSet(gvPurchaseList2); } }
void UCPurchaseBillManangView_SetEvent(object sender, EventArgs e) { if (tabControlEx1.SelectedIndex == 0) { printObject = "tb_pur_bill_s"; printTitle = "按采购开单查询"; businessPrint = new BusinessPrint(gvPurchaseOrderList, printObject, printTitle, paperSize, listNotPrint); businessPrint.PrintSet(gvPurchaseOrderList); } else if (tabControlEx1.SelectedIndex == 1) { printObject = "tb_pur_bill_search"; printTitle = "采购开按配件或供应商查询"; businessPrint = new BusinessPrint(gvPurchaseList2, printObject, printTitle, paperSize, listNotPrint); businessPrint.PrintSet(gvPurchaseList2); } }
void UCOldPartsReceiptQueryManager_SetEvent(object sender, EventArgs e) { if (tcQuery.SelectedIndex == 0) { printObject = "tb_maintain_oldpart_receiv_send_r"; printTitle = "旧件收货单查询"; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); businessPrint.PrintSet(dgvRData); } else if (tcQuery.SelectedIndex == 1) { printObject = "tb_maintain_oldpart_receiv_send_s"; printTitle = "按配件查询旧件收货单"; businessPrint = new BusinessPrint(dgvPartsData, printObject, printTitle, paperSize, listNotPrint); businessPrint.PrintSet(dgvPartsData); } }
void UCPurchaseOrderManagerView_ViewEvent(object sender, EventArgs e) { if (tabControlEx1.SelectedIndex == 0) { printObject = "tb_parts_purchase_order_s"; printTitle = "按采购订单查询"; businessPrint = new BusinessPrint(gvPurchaseOrderList, printObject, printTitle, paperSize, listNotPrint); businessPrint.Preview(gvPurchaseOrderList.GetBoundData()); } else if (tabControlEx1.SelectedIndex == 1) { printObject = "purchase_order_parts_search"; printTitle = "按配件或供应商查询"; businessPrint = new BusinessPrint(gvPurchaseList2, printObject, printTitle, paperSize, listNotPrint); businessPrint.Preview(gvPurchaseList2.GetBoundData()); } }
private void UCRoleManager_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name);//角色按钮权限-是否隐藏 //dgvRole.ReadOnly = false; this.InitEvent(); //状态 DataSources.BindComDataGridViewBoxColumnDataEnum(this.columnStatus, typeof(DataSources.EnumStatus)); //数据来源 DataSources.BindComDataGridViewBoxColumnDataEnum(this.columnSources, typeof(DataSources.EnumDataSources)); base.SetContentMenuScrip(dgvRole); List<string> listNotPrint = new List<string>(); PaperSize printsize = new PaperSize("printsize", dgvRole.Width / 4 + 40, dgvRole.Height); businessPrint = new BusinessPrint(dgvRole, "sys_role", "角色档案", printsize, listNotPrint); }
/// <summary> /// 初始化窗体方法 /// </summary> public UCWareHouseManager() { InitializeComponent(); //禁止列表自增列 dgvWareHouseList.AutoGenerateColumns = false; base.AddEvent += new ClickHandler(UCWareHouseManager_AddEvent); base.CopyEvent += new ClickHandler(UCWareHouseManager_CopyEvent); base.EditEvent += new ClickHandler(UCWareHouseManager_EditEvent); base.DeleteEvent += new ClickHandler(UCWareHouseManager_DeleteEvent); base.StatusEvent += new ClickHandler(UCWareHouseManager_StatusEvent); base.ViewEvent += new ClickHandler(UCWareHouseManager_ViewEvent); dateTimeStart.Value = DateTime.Now.AddMonths(-1); dateTimeEnd.Value = DateTime.Now; businessPrint = new BusinessPrint(dgvWareHouseList, "tb_warehouse", "仓库管理", null, new List<string>()); BindDllInfo(); BindgvWareHouseList(); SetDgvMenu(); }
/// <summary> /// 初始化窗体方法 /// </summary> public UCWareHouseManager() { InitializeComponent(); //禁止列表自增列 dgvWareHouseList.AutoGenerateColumns = false; base.AddEvent += new ClickHandler(UCWareHouseManager_AddEvent); base.CopyEvent += new ClickHandler(UCWareHouseManager_CopyEvent); base.EditEvent += new ClickHandler(UCWareHouseManager_EditEvent); base.DeleteEvent += new ClickHandler(UCWareHouseManager_DeleteEvent); base.StatusEvent += new ClickHandler(UCWareHouseManager_StatusEvent); base.ViewEvent += new ClickHandler(UCWareHouseManager_ViewEvent); dateTimeStart.Value = DateTime.Now.AddMonths(-1); dateTimeEnd.Value = DateTime.Now; businessPrint = new BusinessPrint(dgvWareHouseList, "tb_warehouse", "仓库管理", null, new List <string>()); BindDllInfo(); BindgvWareHouseList(); SetDgvMenu(); }
BusinessPrint businessPrint;//业务打印功能 #region 初始化窗体 /// <summary> 初始化窗体 /// </summary> public UCSalePlanManagerSearch() { InitializeComponent(); gvSalePlanList.CellMouseClick += new DataGridViewCellMouseEventHandler(gvSalePlanList_CellMouseClick); base.ExportEvent += new ClickHandler(UCSalePlanManagerSearch_ExportEvent); base.ViewEvent += new ClickHandler(UCSalePlanManagerSearch_ViewEvent); base.PrintEvent += new ClickHandler(UCSalePlanManagerSearch_PrintEvent); base.SetEvent += new ClickHandler(UCSalePlanManagerSearch_SetEvent); #region 预览、打印设置 string printObject = "tb_parts_sale_plan_s"; string printTitle = "销售计划单查询"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(sale_plan_id.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(gvSalePlanList, printObject, printTitle, paperSize, listNotPrint); #endregion }
private void UCOrganizationManager_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name);//角色按钮权限-是否隐藏 dgvorganization.ReadOnly = false; this.dtpcreate_time.Value = DateTime.Now.AddMonths(-1); this.dtpcreate_time_end.Value = DateTime.Now.Date.Add(new TimeSpan(23, 59, 59)); this.BindPageData(); this.BindTree(); List<string> listNotPrint = new List<string>(); //listNotPrint.Add("create_time"); //listNotPrint.Add("update_time"); listNotPrint.Add(colCheck.Name); businessPrint = new BusinessPrint(dgvorganization, "tb_organization", "组织档案", null, listNotPrint); this.page.PageIndexChanged += new ServiceStationClient.ComponentUI.WinFormPager.EventHandler(this.page_PageIndexChanged); DataSources.BindComDataGridViewBoxColumnDataEnum(this.columnStatus, typeof(DataSources.EnumStatus)); }
BusinessPrint businessPrint;//业务打印功能 #region 初始化窗体 /// <summary> 初始化窗体 /// </summary> public UCSalePlanManagerSearch() { InitializeComponent(); gvSalePlanList.CellMouseClick += new DataGridViewCellMouseEventHandler(gvSalePlanList_CellMouseClick); base.ExportEvent += new ClickHandler(UCSalePlanManagerSearch_ExportEvent); base.ViewEvent += new ClickHandler(UCSalePlanManagerSearch_ViewEvent); base.PrintEvent += new ClickHandler(UCSalePlanManagerSearch_PrintEvent); base.SetEvent += new ClickHandler(UCSalePlanManagerSearch_SetEvent); #region 预览、打印设置 string printObject = "tb_parts_sale_plan_s"; string printTitle = "销售计划单查询"; List <string> listNotPrint = new List <string>(); listNotPrint.Add(sale_plan_id.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(gvSalePlanList, printObject, printTitle, paperSize, listNotPrint); #endregion }
private void UCRoleManager_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name);//角色按钮权限-是否隐藏 //dgvRole.ReadOnly = false; this.InitEvent(); //状态 DataSources.BindComDataGridViewBoxColumnDataEnum(this.columnStatus, typeof(DataSources.EnumStatus)); //数据来源 DataSources.BindComDataGridViewBoxColumnDataEnum(this.columnSources, typeof(DataSources.EnumDataSources)); base.SetContentMenuScrip(dgvRole); List <string> listNotPrint = new List <string>(); PaperSize printsize = new PaperSize("printsize", dgvRole.Width / 4 + 40, dgvRole.Height); businessPrint = new BusinessPrint(dgvRole, "sys_role", "角色档案", printsize, listNotPrint); }
BusinessPrint businessPrint; //业务打印功能 #endregion public UCReceivableManage(DataSources.EnumOrderType orderType) { InitializeComponent(); this.AddEvent += new ClickHandler(UCReceivableManage_AddEvent); this.EditEvent += new ClickHandler(UCReceivableManage_EditEvent); this.CopyEvent += new ClickHandler(UCReceivableManage_CopyEvent); this.DeleteEvent += new ClickHandler(UCReceivableManage_DeleteEvent); this.ViewEvent += new ClickHandler(UCReceivableManage_ViewEvent); this.VerifyEvent += new ClickHandler(UCReceivableManage_VerifyEvent); this.SubmitEvent += new ClickHandler(UCReceivableManage_SubmitEvent); this.PrintEvent += new ClickHandler(UCReceivableManage_PrintEvent); this.ExportEvent += new ClickHandler(UCReceivableManage_ExportEvent); this.orderType = orderType; DataGridViewEx.SetDataGridViewStyle(dgvBillReceivable, colOrderStatus); dgvBillReceivable.ReadOnly = false; dgvBillReceivable.HeadCheckChanged += new DataGridViewEx.DelegateOnClick(dgvBillReceivable_HeadCheckChanged); foreach (DataGridViewColumn dgvc in dgvBillReceivable.Columns) { if (dgvc.Name == colCheck.Name) { continue; } dgvc.ReadOnly = true; } SetLable(); string printObject = "tb_receivable"; string printTitle = "应收账款"; if (orderType == DataSources.EnumOrderType.PAYMENT) { printObject = "tb_payment"; printTitle = "应付账款"; } List <string> listNotPrint = new List <string>(); listNotPrint.Add(colOrgId.Name); listNotPrint.Add(colHandle.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvBillReceivable, printObject, printTitle, paperSize, listNotPrint); }
private void UCOrganizationManager_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name);//角色按钮权限-是否隐藏 dgvorganization.ReadOnly = false; this.dtpcreate_time.Value = DateTime.Now.AddMonths(-1); this.dtpcreate_time_end.Value = DateTime.Now.Date.Add(new TimeSpan(23, 59, 59)); this.BindPageData(); this.BindTree(); List <string> listNotPrint = new List <string>(); //listNotPrint.Add("create_time"); //listNotPrint.Add("update_time"); listNotPrint.Add(colCheck.Name); businessPrint = new BusinessPrint(dgvorganization, "tb_organization", "组织档案", null, listNotPrint); this.page.PageIndexChanged += new ServiceStationClient.ComponentUI.WinFormPager.EventHandler(this.page_PageIndexChanged); DataSources.BindComDataGridViewBoxColumnDataEnum(this.columnStatus, typeof(DataSources.EnumStatus)); }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化窗体 public UCReserveOrderQuery() { this.dt = null; InitializeComponent(); base.ExportEvent -= new ClickHandler(UC_ExportEvent); base.ExportEvent += new ClickHandler(UC_ExportEvent); base.ViewEvent += new ClickHandler(UCReserveOrderQuery_ViewEvent); base.PrintEvent += new ClickHandler(UCReserveOrderQuery_PrintEvent); base.SetEvent += new ClickHandler(UCReserveOrderQuery_SetEvent); SetQuick(); #region 预览、打印设置 string printObject = "tb_maintain_reservation"; string printTitle = "预约单查询"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(reserv_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); #endregion }
/// <summary> /// 初始化窗体方法 /// </summary> public UCSupplierManager() { InitializeComponent(); //禁止列表自增列 dgvSupplierList.AutoGenerateColumns = false; base.AddEvent += new ClickHandler(UCSupplierManager_AddEvent); base.CopyEvent += new ClickHandler(UCSupplierManager_CopyEvent); base.EditEvent += new ClickHandler(UCSupplierManager_EditEvent); base.DeleteEvent += new ClickHandler(UCSupplierManager_DeleteEvent); base.StatusEvent += new ClickHandler(UCSupplierManager_StatusEvent); base.ExportEvent += new ClickHandler(UCSupplierManager_ExportEvent); base.ViewEvent += new ClickHandler(UCSupplierManager_ViewEvent); dateTimeStart.Value = DateTime.Now.AddMonths(-1); dateTimeEnd.Value = DateTime.Now; List<string> listNotPrint = new List<string>(); listNotPrint.Add(create_time.Name); businessPrint = new BusinessPrint(dgvSupplierList, "tb_supplier", "供应商档案", null, listNotPrint); BindDllInfo(); BindgvSupplierList(); }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化窗体 public UCReserveOrderQuery() { this.dt = null; InitializeComponent(); base.ExportEvent -= new ClickHandler(UC_ExportEvent); base.ExportEvent += new ClickHandler(UC_ExportEvent); base.ViewEvent += new ClickHandler(UCReserveOrderQuery_ViewEvent); base.PrintEvent += new ClickHandler(UCReserveOrderQuery_PrintEvent); base.SetEvent += new ClickHandler(UCReserveOrderQuery_SetEvent); SetQuick(); #region 预览、打印设置 string printObject = "tb_maintain_reservation"; string printTitle = "预约单查询"; List <string> listNotPrint = new List <string>(); listNotPrint.Add(reserv_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); #endregion }
private void UCOrganizationManager_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name);//角色按钮权限-是否隐藏 //dgvorganization.ReadOnly = false; this.dtpcreate_time.Value = DateTime.Now.AddMonths(-1); this.dtpcreate_time_end.Value = DateTime.Now.Date.Add(new TimeSpan(23, 59, 59)); this.BindPageData(); this.BindTree(); List<string> listNotPrint = new List<string>(); //listNotPrint.Add("create_time"); //listNotPrint.Add("update_time"); listNotPrint.Add(colCheck.Name); PaperSize printSize = new PaperSize("组织打印", dgvorganization.Width / 4 + 25, dgvorganization.Height / 2 + 20); businessPrint = new BusinessPrint(dgvorganization, "tb_organization", "组织档案", printSize, listNotPrint); this.page.PageIndexChanged += new ServiceStationClient.ComponentUI.WinFormPager.EventHandler(this.page_PageIndexChanged); DataSources.BindComDataGridViewBoxColumnDataEnum(this.status, typeof(DataSources.EnumStatus)); MessageProcessor.ComOrginfoUpdate += new EventHandler(MessageProcessor_ComOrginfoUpdate); base.SetContentMenuScrip(dgvorganization); }
private void UCCompanyManager_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name);//角色按钮权限-是否隐藏 //dgvRecord.ReadOnly = false; this.InitEvent(); CommonCtrl.DgCmbBindDict(this.colWXZZ, "sys_repair_qualification"); CommonCtrl.DgCmbBindDict(this.colGSXZ, "sys_enterprise_property"); DataSources.BindComDataGridViewBoxColumnDataEnum(this.colStatus, typeof(DataSources.EnumStatus)); this.InitData(); this.BindPageData(); this.page.PageIndexChanged += new ServiceStationClient.ComponentUI.WinFormPager.EventHandler(this.page_PageIndexChanged); base.SetContentMenuScrip(dgvRecord); List<string> listNotPrint = new List<string>(); PaperSize printsize = new PaperSize("printsize", dgvRecord.Width / 4 + 40, dgvRecord.Height); businessPrint = new BusinessPrint(dgvRecord, "tb_company", "公司档案", printsize, listNotPrint); }
private void UCPersonnelManager_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name); //dgvUser.ReadOnly = false; this.dtpentry_date.Value = DateTime.Now.AddMonths(-1); this.dtpentry_date_end.Value = DateTime.Now; DataSources.BindComBoxDataEnum(cbbstatus, typeof(DataSources.EnumStatus), true); //绑定状态 启用 停用 DataSources.BindComBoxDataEnum(cbbis_operator, typeof(DataSources.EnumYesNo), true); //是否操作员 DataSources.BindComDataGridViewBoxColumnDataEnum(this.is_operator, typeof(DataSources.EnumYesNo)); DataSources.BindComDataGridViewBoxColumnDataEnum(this.columnStatus, typeof(DataSources.EnumStatus)); this.BindTree(); List <string> listNotPrint = new List <string>(); PaperSize printsize = new PaperSize("printsize", dgvUser.Width / 3, dgvUser.Height); businessPrint = new BusinessPrint(dgvUser, "sys_user", "人员档案", printsize, listNotPrint); base.SetContentMenuScrip(dgvUser); }
BusinessPrint businessPrint;//业务打印功能 #endregion #region 初始化窗体 public UCOldPartsInventoryQuery() { InitializeComponent(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 CommonFuncCall.BindCompany(cobCompany, "全部");//公司信息 #region 显示合并表头 dgvRData.ColumnHeadersHeight = 40; dgvRData.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing; dgvRData.MergeColumnNames.Add("基本单位"); dgvRData.AddSpanHeader(7, 5, "基本单位"); #endregion SetQuick(); #region 预览、打印设置 string printObject = "tb_maintain_oldpart_inventory"; string printTitle = "旧件库存查询"; List<string> listNotPrint = new List<string>(); listNotPrint.Add(inventory_id.Name); //listNotPrint.Add(v_brand.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); #endregion }
BusinessPrint businessPrint;//业务打印功能 #endregion public UCReceivableManage(DataSources.EnumOrderType orderType) { InitializeComponent(); this.AddEvent += new ClickHandler(UCReceivableManage_AddEvent); this.EditEvent += new ClickHandler(UCReceivableManage_EditEvent); this.CopyEvent += new ClickHandler(UCReceivableManage_CopyEvent); this.DeleteEvent += new ClickHandler(UCReceivableManage_DeleteEvent); this.ViewEvent += new ClickHandler(UCReceivableManage_ViewEvent); this.VerifyEvent += new ClickHandler(UCReceivableManage_VerifyEvent); this.SubmitEvent += new ClickHandler(UCReceivableManage_SubmitEvent); this.PrintEvent += new ClickHandler(UCReceivableManage_PrintEvent); this.ExportEvent += new ClickHandler(UCReceivableManage_ExportEvent); this.orderType = orderType; DataGridViewEx.SetDataGridViewStyle(dgvBillReceivable, colOrderStatus); dgvBillReceivable.ReadOnly = false; dgvBillReceivable.HeadCheckChanged += new DataGridViewEx.DelegateOnClick(dgvBillReceivable_HeadCheckChanged); foreach (DataGridViewColumn dgvc in dgvBillReceivable.Columns) { if (dgvc.Name == colCheck.Name) { continue; } dgvc.ReadOnly = true; } SetLable(); string printObject = "tb_receivable"; string printTitle = "财务收款单"; if (orderType == DataSources.EnumOrderType.PAYMENT) { printObject = "tb_payment"; printTitle = "财务付款单"; } List<string> listNotPrint = new List<string>(); listNotPrint.Add(colOrgId.Name); listNotPrint.Add(colHandle.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvBillReceivable, printObject, printTitle, paperSize, listNotPrint); }
void UCYTManagerView_SetEvent(object sender, EventArgs e) { if (tabControlEx1.SelectedIndex == 0) { printObject = "tb_parts_purchase_order_s"; printTitle = "按宇通采购订单查询"; businessPrint = new BusinessPrint(gvYTPurchaseOrderList, printObject, printTitle, paperSize, listNotPrint); businessPrint.PrintSet(gvYTPurchaseOrderList); } else if (tabControlEx1.SelectedIndex == 1) { printObject = "purchase_order_parts_search"; printTitle = "按配件或供应商查询"; businessPrint = new BusinessPrint(gvPurchaseList2, printObject, printTitle, paperSize, listNotPrint); businessPrint.PrintSet(gvPurchaseList2); } }
private void UCPersonnelManager_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name); //dgvUser.ReadOnly = false; this.dtpentry_date.Value = DateTime.Now.AddMonths(-1); this.dtpentry_date_end.Value = DateTime.Now; DataSources.BindComBoxDataEnum(cbbstatus, typeof(DataSources.EnumStatus), true);//绑定状态 启用 停用 DataSources.BindComBoxDataEnum(cbbis_operator, typeof(DataSources.EnumYesNo), true);//是否操作员 DataSources.BindComDataGridViewBoxColumnDataEnum(this.is_operator, typeof(DataSources.EnumYesNo)); DataSources.BindComDataGridViewBoxColumnDataEnum(this.columnStatus, typeof(DataSources.EnumStatus)); this.BindTree(); List<string> listNotPrint = new List<string>(); PaperSize printsize = new PaperSize("printsize", dgvUser.Width / 4 + 20, dgvUser.Height); businessPrint = new BusinessPrint(dgvUser, "sys_user", "人员档案", printsize, listNotPrint); base.SetContentMenuScrip(dgvUser); }
BusinessPrint businessPrint;//业务打印功能 #endregion public UCAccountVerificationManage() { InitializeComponent(); this.AddEvent += new ClickHandler(UCAccountVerificationManage_AddEvent); this.EditEvent += new ClickHandler(UCAccountVerificationManage_EditEvent); this.CopyEvent += new ClickHandler(UCAccountVerificationManage_CopyEvent); this.ViewEvent += new ClickHandler(UCAccountVerificationManage_ViewEvent); this.DeleteEvent += new ClickHandler(UCAccountVerificationManage_DeleteEvent); this.VerifyEvent += new ClickHandler(UCAccountVerificationManage_VerifyEvent); this.SubmitEvent += new ClickHandler(UCAccountVerificationManage_SubmitEvent); this.PrintEvent += new ClickHandler(UCAccountVerificationManage_PrintEvent); this.ExportEvent += new ClickHandler(UCAccountVerificationManage_ExportEvent); dgvVerification.ReadOnly = false; dgvVerification.HeadCheckChanged += new DataGridViewEx.DelegateOnClick(dgvVerification_HeadCheckChanged); foreach (DataGridViewColumn dgvc in dgvVerification.Columns) { if (dgvc.Name == colChk.Name) { continue; } dgvc.ReadOnly = true; } List<string> listNotPrint = new List<string>(); listNotPrint.Add(colOrgId.Name); listNotPrint.Add(colHandle.Name); PaperSize paperSize = new PaperSize(); paperSize.Width = 297; paperSize.Height = 210; businessPrint = new BusinessPrint(dgvVerification, "tb_account_verification", "往来核销", paperSize, listNotPrint); }
void UCOldPartsReceiptQueryManager_SetEvent(object sender, EventArgs e) { if (tcQuery.SelectedIndex == 0) { printObject = "tb_maintain_oldpart_receiv_send_r"; printTitle = "旧件收货单查询"; businessPrint = new BusinessPrint(dgvRData, printObject, printTitle, paperSize, listNotPrint); businessPrint.PrintSet(dgvRData); } else if (tcQuery.SelectedIndex == 1) { printObject = "tb_maintain_oldpart_receiv_send_s"; printTitle = "按配件查询旧件收货单"; businessPrint = new BusinessPrint(dgvPartsData, printObject, printTitle, paperSize, listNotPrint); businessPrint.PrintSet(dgvPartsData); } }