public Hashtable PartHTable = new Hashtable(); //存放开单主键ID与对应的配件编号 #endregion #region 窗体初始化 public UCImportSaleReturnBilling() { InitializeComponent(); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToString(); //开始时间 dateTimeEnd.Value = DateTime.Now.ToString(); //结束时间 string com_id = GlobalStaticObj.CurrUserCom_Id; //公司ID CommonFuncCall.BindDepartment(ddlorg_id, com_id, DefaultValue); //部门名称 CommonFuncCall.BindHandle(ddlhandle, "", DefaultValue); //经手人 CommonFuncCall.BindHandle(ddloperator, "", DefaultValue); //操作人 //设置单据列表的可编辑状态 dgBillList.ReadOnly = false; foreach (DataGridViewColumn dgCol in dgBillList.Columns) { if (dgCol.Name != colCheck.Name) { dgCol.ReadOnly = true; } } //设置单据的配件列表的可编辑状态 dgPartslist.ReadOnly = false; foreach (DataGridViewColumn dgCol in dgPartslist.Columns) { if (dgCol.Name != colDetailCheck.Name) { dgCol.ReadOnly = true; } } GetSaleBillResult();//获取销售退货单查询结果 }
public UCReportedLossQuery() { InitializeComponent(); base.ExportEvent += new ClickHandler(UCReportedLossQuery_ExportEvent); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //美化查询和清除按钮控件 DataGridViewEx.SetDataGridViewStyle(gvLossQueryBillList, OutWhState); //美化表格控件 }
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 }
/// <summary> /// 窗体加载方法 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCSupplierManager_Load(object sender, EventArgs e) { dgvSupplierList.ReadOnly = true; base.SetBtnStatus(WindowStatus.View); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 dt_bill = CommonFuncCall.GetDataTable(); }
/// <summary> /// 窗体加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCYTManager_Load(object sender, EventArgs e) { base.SetBaseButtonStatus(); base.SetButtonVisiableManager(); dateTimeReqDeliveryTimeStart.Value = DateTime.Now; dateTimeReqDeliveryTimeEnd.Value = DateTime.Now; string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvYTPurchaseOrderList, NotReadOnlyColumnsName); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 //列表的右键操作功能 base.SetContentMenuScrip(gvYTPurchaseOrderList); //绑定宇通采购订单类型 CommonFuncCall.BindYTPurchaseOrderType(ddlorder_type, true, "全部"); //绑定紧急程度 CommonFuncCall.BindComBoxDataSource(ddlemergency_level, "emergency_level_yt", "全部"); //调拨类型 CommonFuncCall.BindYTAllotType(ddlallot_type, true, "全部"); CommonFuncCall.BindCompany(ddlCompany, "全部"); CommonFuncCall.BindDepartment(ddlDepartment, "", "全部"); CommonFuncCall.BindHandle(ddlhandle, "", "全部"); CommonFuncCall.BindOrderStatus(ddlorder_status, true); BindgvYTPurchaseOrderList(); }
public UCRequisitionQuery() { InitializeComponent(); base.ExportEvent += new ClickHandler(UCRequisitionQuery_ExportEvent); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);//美化查询和清除按钮控件 // DataGridViewEx.SetDataGridViewStyle(gvAllotQueryBillList, InOutState);//美化表格控件 }
//加载 private void UCContactsManage_Load(object sender, EventArgs e) { diCreate.StartDate = DateTime.Now.AddYears(-1).ToString(diCreate.customFormat); diCreate.EndDate = DateTime.Now.ToString(diCreate.customFormat); #region 初始化右键的权限 tsmiView.Visible = btnView.Visible; tsmiEdit.Visible = btnEdit.Visible; tsmiDelete.Visible = btnDelete.Visible; tsmiCopy.Visible = btnCopy.Visible; #endregion btnEdit.Enabled = false; btnCopy.Enabled = false; btnView.Enabled = false; btnDelete.Enabled = false; tsmiView.Enabled = false; tsmiEdit.Enabled = false; tsmiDelete.Enabled = false; tsmiCopy.Enabled = false; //设置页面按钮可见性 var btnCols = new ObservableCollection <ButtonEx_sms> { btnAdd, btnCopy, btnEdit, btnDelete, btnStatus, btnCancel, btnExport, btnImport, btnPrint, btnSet }; UIAssistants.SetUCBaseFuncationVisible(this, btnCols); btnStatus.Enabled = false; BindSearch(); BindData(); }
/// <summary> /// 窗体初始化 /// </summary> public UCAllocationBillManager() { InitializeComponent(); gvAllocBillList.ReadOnly = false; OrderType.ReadOnly = true; BillType.ReadOnly = true; BillNum.ReadOnly = true; BillDate.ReadOnly = true; WHName.ReadOnly = true; TotalCount.ReadOnly = true; ArrivPlace.ReadOnly = true; DepartName.ReadOnly = true; HandlerName.ReadOnly = true; OpeName.ReadOnly = true; Remarks.ReadOnly = true; OrderState.ReadOnly = true; //注册操作事件 base.AddEvent += new ClickHandler(UCAllocationBillManager_AddEvent); base.EditEvent += new ClickHandler(UCAllocationBillManager_EditEvent); base.CopyEvent += new ClickHandler(UCAllocationBillManager_CopyEvent); base.DeleteEvent += new ClickHandler(UCAllocationBillManager_DeleteEvent); base.VerifyEvent += new ClickHandler(UCAllocationBillManager_VerifyEvent); base.ExportEvent += new ClickHandler(UCAllocationBillManager_ExportEvent); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);//美化查询和清除按钮控件 // DataGridViewEx.SetDataGridViewStyle(gvAllocBillList, OrderState);//美化表格控件 base.btnImport.Enabled = false; base.btnCommit.Enabled = false; base.btnStatus.Enabled = false; base.btnImport.Enabled = false; base.btnBalance.Enabled = false; base.btnSync.Enabled = false; }
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> /// <param name="sender"></param> /// <param name="e"></param> private void UCPurchaseOrderManager_Load(object sender, EventArgs e) { base.SetBaseButtonStatus(); base.SetButtonVisiableManagerSearch(); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName); string[] NotReadOnlyColumnsName2 = new string[] { "p_colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseList2, NotReadOnlyColumnsName2); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 UIAssistants.SetButtonStyle4QueryAndClear(btnSearch2, btnClear2); //设置查询按钮和清除按钮样式 dateTimeStart.Value = DateTime.Now; dateTimeEnd.Value = DateTime.Now; dateTimeStart2.Value = DateTime.Now; dateTimeEnd2.Value = DateTime.Now; //运输方式 CommonFuncCall.BindComBoxDataSource(ddltrans_mode, "sys_trans_mode", "全部"); //结算方式 CommonFuncCall.BindBalanceWay(ddlclosing_way, "全部"); CommonFuncCall.BindCompany(ddlCompany, "全部"); CommonFuncCall.BindCompany(ddlddlCompany2, "全部"); CommonFuncCall.BindDepartment(ddlDepartment, "", "全部"); CommonFuncCall.BindHandle(ddlhandle, "", "全部"); CommonFuncCall.BindFinishStatus(ddlFinishStatus, true); //CommonFuncCall.BindBillStatus(ddlBillStatus2, true); CommonFuncCall.BindFinishStatus(ddlBillStatus2, true); CommonFuncCall.BindIs_Gift(ddlis_gift2, true); BindgvPurchaseOrderList(); }
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(); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear, true); //设置查询按钮和清除按钮样式 }
public UCRepairBalanceImport() { InitializeComponent(); UIAssistants.SetButtonStyle4QueryAndClear(btnSubmit, btnClear); //设置查询按钮和清除按钮样式 this.AcceptButton = btnSubmit; dgvRData.ReadOnly = false; dgvRData.Columns["maintain_no"].ReadOnly = true; dgvRData.Columns["reception_time"].ReadOnly = true; dgvRData.Columns["customer_name"].ReadOnly = true; dgvRData.Columns["vehicle_no"].ReadOnly = true; dgvRData.Columns["vehicle_vin"].ReadOnly = true; dgvRData.Columns["vehicle_brand"].ReadOnly = true; dgvRData.Columns["vehicle_model"].ReadOnly = true; dgvRData.Columns["engine_no"].ReadOnly = true; dgvRData.Columns["driver_name"].ReadOnly = true; dgvRData.Columns["driver_mobile"].ReadOnly = true; dgvRData.Columns["maintain_type"].ReadOnly = true; dgvRData.Columns["fault_describe"].ReadOnly = true; dgvRData.Columns["travel_mileage"].ReadOnly = true; dgvRData.Columns["vehicle_color"].ReadOnly = true; dgvRData.Columns["linkman"].ReadOnly = true; dgvRData.Columns["link_man_mobile"].ReadOnly = true; dgvRData.Columns["maintain_payment"].ReadOnly = true; dtpReserveSTime.Value = DateTime.Now.AddMonths(-1); dtpReserveETime.Value = DateTime.Now; }
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 }
public UCOldPartsPalautusQueryManage() { InitializeComponent(); BindOrderStatus(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 base.ViewEvent += new ClickHandler(UCOldPartsPalautusQueryManage_ViewEvent); }
private int CustCounts = 0; //客户记录数 public FrmBusinessUints() { InitializeComponent(); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 BindTvCustom(); //绑定客户分类 BindTvSupplier(); //绑定供应商分类 }
/// <summary> /// 报表基类 /// </summary> /// <param name="styleObject">报表对象</param> /// <param name="styleTitle">报表默认标题</param> public UCReport(string styleObject, string styleTitle) { InitializeComponent(); this.styleObject = styleObject; this.styleTitle = styleTitle; styleMoney = new DataGridViewCellStyle(); styleMoney.Alignment = DataGridViewContentAlignment.MiddleRight; styleMoney.Format = "N2"; btnEdit.Caption = "设置"; btnSet.Caption = "设计"; this.SetEvent += new ClickHandler(UCReport_SetEvent); this.ViewEvent += new ClickHandler(UCReport_ViewEvent); this.EditEvent += new ClickHandler(UCReport_EditEvent); this.ExportEvent += new ClickHandler(UCReport_ExportEvent); this.PrintEvent += new ClickHandler(UCReport_PrintEvent); #region 设置 //设置页面按钮可见性 //var btnCols = new ObservableCollection<ButtonEx_sms> // { // btnExport,btnView,btnPrint,btnSet,btnEdit // }; //UIAssistants.SetUCBaseFuncationVisible(this, btnCols); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 #endregion }
public UCBankAccountManage() { InitializeComponent(); UIAssistants.SetButtonStyle4QueryAndClear(this.btnSearch, btnClear); //设置查询按钮和清除按钮样式 DataGridViewEx.SetDataGridViewStyle(this.dgvBank); //设置数据表格样式,并将最后一列填充其余空白 this.AddEvent += new ClickHandler(UCBankAccountManage_AddEvent); this.EditEvent += new ClickHandler(UCBankAccountManage_EditEvent); this.CopyEvent += new ClickHandler(UCBankAccountManage_CopyEvent); this.ViewEvent += new ClickHandler(UCBankAccountManage_ViewEvent); this.DeleteEvent += new ClickHandler(UCBankAccountManage_DeleteEvent); base.StatusEvent -= new ClickHandler(UC_StatusEvent); base.StatusEvent += new ClickHandler(UC_StatusEvent); dgvBank.ReadOnly = false; foreach (DataGridViewColumn dgvc in dgvBank.Columns) { if (dgvc.Name == colCheck.Name) { continue; } dgvc.ReadOnly = true; } }
private const string PartStatus = "status";//配件启停用标志 #endregion public UCStockQuery() { InitializeComponent(); base.ExportEvent += new ClickHandler(UCStockQuery_ExportEvent); UIAssistants.SetButtonStyle4QueryAndClear(btnPartSearch, btnPartClear); //美化查询和清除按钮控件 DataGridViewEx.SetDataGridViewStyle(gvStockList, ApplyFlag); //美化表格控件 }
private const string WarehName = "wh_name"; //仓库名称 #endregion public UCStockReceiptManager() { InitializeComponent(); //注册操作事件 base.AddEvent += new ClickHandler(UCStockReceiptManager_AddEvent); base.EditEvent += new ClickHandler(UCStockReceiptManager_EditEvent); base.CopyEvent += new ClickHandler(UCStockReceiptManager_CopyEvent); base.DeleteEvent += new ClickHandler(UCStockReceiptManager_DeleteEvent); base.SubmitEvent += new ClickHandler(UCStockReceiptManager_SubmitEvent); base.VerifyEvent += new ClickHandler(UCStockReceiptManager_VerifyEvent); base.ExportEvent += new ClickHandler(UCStockReceiptManager_ExportEvent); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //美化查询和清除按钮控件 DataGridViewEx.SetDataGridViewStyle(gvReceiptBillList, OrderState); //美化表格控件 //设置列表的可编辑状态 gvReceiptBillList.ReadOnly = false; foreach (DataGridViewColumn dgCol in gvReceiptBillList.Columns) { if (dgCol.Name != colCheck.Name) { dgCol.ReadOnly = true; } } base.btnImport.Visible = false; base.btnCommit.Visible = false; base.btnStatus.Visible = false; base.btnImport.Visible = false; base.btnBalance.Visible = false; base.btnSync.Visible = false; }
public UCRequisitionManager() { InitializeComponent(); //注册操作事件 base.AddEvent += new ClickHandler(UCRequisitionManager_AddEvent); base.EditEvent += new ClickHandler(UCRequisitionManager_EditEvent); base.CopyEvent += new ClickHandler(UCRequisitionManager_CopyEvent); base.DeleteEvent += new ClickHandler(UCRequisitionManager_DeleteEvent); base.VerifyEvent += new ClickHandler(UCRequisitionManager_VerifyEvent); base.ExportEvent += new ClickHandler(UCRequisitionManager_ExportEvent); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);//美化查询和清除按钮控件 //DataGridViewEx.SetDataGridViewStyle(gvAllotBillList, OrderState);//美化表格控件 //设置列表的可编辑状态 gvAllotBillList.ReadOnly = false; foreach (DataGridViewColumn dgCol in gvAllotBillList.Columns) { if (dgCol.Name != colCheck.Name) { dgCol.ReadOnly = true; } } gvAllotBillList.HeadCheckChanged += new DataGridViewEx.DelegateOnClick(gvAllotBillList_HeadCheckChanged); //复选框标题显示为复选框状态 base.btnImport.Visible = false; base.btnCommit.Visible = false; base.btnStatus.Visible = false; base.btnImport.Visible = false; base.btnBalance.Visible = false; base.btnSync.Visible = false; }
/// <summary> 加载窗体 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCSaleOrderManager_Load(object sender, EventArgs e) { //base.SetBaseButtonStatus(); //base.SetButtonVisiableManager(); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 //列表的右键操作功能 base.SetContentMenuScrip(gvPurchaseOrderList); dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1); dateTimeEnd.Value = DateTime.Now; //运输方式 CommonFuncCall.BindComBoxDataSource(ddltrans_mode, "sys_trans_mode", "全部"); //结算方式 CommonFuncCall.BindBalanceWay(ddlclosing_way, "全部"); CommonFuncCall.BindCompany(ddlCompany, "全部"); CommonFuncCall.BindDepartment(ddlDepartment, "", "全部"); CommonFuncCall.BindHandle(ddlhandle, "", "全部"); CommonFuncCall.BindOrderStatus(ddlState, true); BindgvSaleOrderList(); Choosefrm.CusNameChoose(txtcus_name, Choosefrm.delDataBack = null); }
/// <summary> 窗体加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCSaleBillManangSearch_Load(object sender, EventArgs e) { //base.SetBaseButtonStatus(); //base.SetButtonVisiableManagerSearch(); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName); string[] NotReadOnlyColumnsName2 = new string[] { "p_colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseList2, NotReadOnlyColumnsName2); base.SetContentMenuScrip(gvPurchaseOrderList); base.SetContentMenuScrip(gvPurchaseList2); base.ClearAllToolStripItem(); base.AddToolStripItem(base.btnExport); base.AddToolStripItem(base.btnView); base.AddToolStripItem(base.btnSet); base.AddToolStripItem(base.btnPrint); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 UIAssistants.SetButtonStyle4QueryAndClear(btnSearch2, btnClear2); //设置查询按钮和清除按钮样式 dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1); dateTimeEnd.Value = DateTime.Now; dateTimeStart2.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1); dateTimeEnd2.Value = DateTime.Now; //单据类型 CommonFuncCall.BindSaleOrderType(ddlorder_type, true, "全部"); //运输方式 CommonFuncCall.BindComBoxDataSource(ddltrans_way, "sys_trans_mode", "全部"); //发票类型 CommonFuncCall.BindComBoxDataSource(ddlreceipt_type, "sys_receipt_type", "全部"); //结算方式 CommonFuncCall.BindBalanceWay(ddlbalance_way, "全部"); //结算账户 CommonFuncCall.BindAccount(ddlbalance_account, "", "全部"); //是否赠品 CommonFuncCall.BindIs_Gift(ddlis_gift2, true); //结算情况 CommonFuncCall.BindBalanceStatus(ddlbalance, true, "全部"); //出库状态 CommonFuncCall.BindOutStockStatus(ddlStockOutStatus2, true, "全部"); //公司ID CommonFuncCall.BindCompany(ddlCompany, "全部"); CommonFuncCall.BindCompany(ddlCompany2, "全部"); CommonFuncCall.BindDepartment(ddlDepartment, "", "全部"); CommonFuncCall.BindHandle(ddlhandle, "", "全部"); BindgvPurchaseOrderList(); Choosefrm.CusCodeChoose(txtcust_code, Choosefrm.delDataBack = CustName_DataBack); //按客户或配件信息查看---注册配件编码速查 Choosefrm.PartsCodeChoose(txtparts_code2, Choosefrm.delDataBack = PartsName_DataBack); //按客户或配件信息查看---注册配件类型速查 Choosefrm.PartsTypeNameChoose(txtparts_type2, Choosefrm.delDataBack = null); //按客户或配件信息查看---注册配件车型速查 Choosefrm.PartsCarModelNameChoose(txtparts_cartype2, Choosefrm.delDataBack = null); //按客户或配件信息查看---注册客户编码速查 Choosefrm.CusCodeChoose(txtcust_code2, Choosefrm.delDataBack = CustName2_DataBack); }
//初始化 private void Init() { #region 初始化下拉框数据绑定 #endregion #region 初始化界面控件值 if (OpType == WindowStatus.View) { UIAssistants.SetUCBaseFuncationVisible(this, new ObservableCollection <ButtonEx_sms> { btnExport, btnSet, btnView, btnPrint }); SetCustInfo(); if (!String.IsNullOrEmpty(VipId)) { SetMemberInfo(); } palQTop.Enabled = false; } #endregion #region 注册功能按钮事件 #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 }
/// <summary> /// 窗体加载方法 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCSalePlanManager_Load(object sender, EventArgs e) { //base.SetBaseButtonStatus(); //base.SetButtonVisiableManagerSearch(); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvSalePlanList, NotReadOnlyColumnsName); base.SetContentMenuScrip(gvSalePlanList); base.ClearAllToolStripItem(); base.AddToolStripItem(base.btnExport); base.AddToolStripItem(base.btnView); base.AddToolStripItem(base.btnSet); base.AddToolStripItem(base.btnPrint); //禁止列表自增列 gvSalePlanList.AutoGenerateColumns = false; UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 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); BindgvSalePlanList(); }
private void UCReserveOrderQuery_Load(object sender, EventArgs e) { CommonCtrl.CmbBindDict(cobPayType, "sys_repair_pay_methods", true); //绑定维修付费方式 this.SetTopbuttonShow(); UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 dtpReserveSTime.Value = DateTime.Now.AddMonths(-1); dtpReserveETime.Value = DateTime.Now; dtpReInSTime.Value = DateTime.Now.AddMonths(-1); dtpReInETime.Value = DateTime.Now; dgvRData.Dock = DockStyle.Fill; dgvRData.ReadOnly = false; foreach (DataGridViewColumn dgvc in dgvRData.Columns) { if (dgvc == colCheck) { continue; } dgvc.ReadOnly = true; } if (dt == null) { this._BindPageData(); } else { this.BindPageData(); } this.page.PageIndexChanged -= new ServiceStationClient.ComponentUI.WinFormPager.EventHandler(this.page_PageIndexChanged); this.page.PageIndexChanged += new ServiceStationClient.ComponentUI.WinFormPager.EventHandler(this.page_PageIndexChanged); }
private void SetCallbackInfo() //设置客户回访信息 { var feedbackInfo = DBHelper.GetTable("查询客户回访信息", "tb_CustomerSer_Callback", "*", "Callback_id = '" + CallBackId + "'", "", ""); if (feedbackInfo != null && feedbackInfo.DefaultView.Count != 0) { txt_cb_title.Caption = CommonCtrl.IsNullToString(feedbackInfo.DefaultView[0]["title"]); rtx_cb_record.Text = CommonCtrl.IsNullToString(feedbackInfo.DefaultView[0]["record"]); HandleId = CommonCtrl.IsNullToString(feedbackInfo.DefaultView[0]["handle_name"]); txt_cb_handle_org.Caption = CommonCtrl.IsNullToString(feedbackInfo.DefaultView[0]["handle_org"]); SetHandleInfo(); } UIAssistants.SetDataGridViewCheckColumn(dataGridViewEx1, drchk_check); var relationInfo = DBHelper.GetTable("查询客户与维修单关系", "tr_maintain_customer_callback", "*", "callback_id = '" + CallBackId + "'", "", ""); if (relationInfo != null && relationInfo.DefaultView.Count != 0) { foreach (DataRow row in relationInfo.Rows) { foreach (DataGridViewRow rowView in dataGridViewEx1.Rows) { if (CommonCtrl.IsNullToString(rowView.Cells[drtxt_maintain_id.Name].Value) == CommonCtrl.IsNullToString(row["maintain_id"])) { rowView.Cells[drchk_check.Name].Value = true; } } } } }
public frmVehicleGrade() { InitializeComponent(); SetDgvAnchor(); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 pageQ.PageIndexChanged += delegate { string where = "a.enable_flag='1'"; if (!string.IsNullOrEmpty(txtLicensePlate.Caption.Trim())) { where += string.Format(" and license_plate like '%{0}%'", txtLicensePlate.Caption.Trim()); } if (!string.IsNullOrEmpty(txtVIN.Caption.Trim())) { where += string.Format(" and vin like '%{0}%'", txtVIN.Caption.Trim()); } if (!string.IsNullOrEmpty(txtEngineNum.Caption.Trim())) { where += string.Format(" and engine_num like '%{0}%'", txtEngineNum.Caption.Trim()); } if (!string.IsNullOrEmpty(txtCCode.Caption.Trim())) { where += string.Format(" and b.cust_code like '%{0}%'", txtCCode.Caption.Trim()); } if (!string.IsNullOrEmpty(txtCName.Caption.Trim())) { where += string.Format(" and b.cust_namelike '%{0}%'", txtCName.Caption.Trim()); } BindPageData(String.IsNullOrEmpty(where) ? "a.enable_flag = '1'" : where); }; }
public UCRepairProgressManager() { InitializeComponent(); SetTopbuttonShow(); CommonFuncCall.BindComBoxDataSource(cobStation, "sys_station_information", "全部"); //工位 UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 }