/// <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); }
/// <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(); }
/// <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); 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(this, btnSearch, btnClear); //设置查询按钮和清除按钮样式 UIAssistants.SetButtonStyle4QueryAndClear(this, 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.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(); //按采购订单查看---注册供应商编码速查 Choosefrm.SupperNameChoose(txtsup_name, Choosefrm.delDataBack = null); //按供应商或配件信息查看---注册配件编码速查 Choosefrm.PartsCodeChoose(txtparts_code2, Choosefrm.delDataBack = PartsName_DataBack); //按供应商或配件信息查看---注册配件类型速查 Choosefrm.PartsTypeNameChoose(txtparts_type2, Choosefrm.delDataBack = null); //按供应商或配件信息查看---注册配件车型速查 Choosefrm.PartsCarModelNameChoose(txtparts_cartype2, Choosefrm.delDataBack = null); //按供应商或配件信息查看---注册供应商编码速查 Choosefrm.SupperCodeChoose(txtsup_code2, Choosefrm.delDataBack = SupName2_DataBack); }
/// <summary> 窗体加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCPurchaseBillManangView_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.BindPurchaseOrderType(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.BindIntoStockStatus(ddlStockInStatus2, true, "全部"); //公司ID CommonFuncCall.BindCompany(ddlCompany, "全部"); CommonFuncCall.BindCompany(ddlCompany2, "全部"); CommonFuncCall.BindDepartment(ddlDepartment, "", "全部"); CommonFuncCall.BindHandle(ddlhandle, "", "全部"); string table = "tb_supplier"; string displayColumn = "sup_code"; string valueColumn = "sup_full_name"; //设置表和显示字段 this.txtsup_code.SetBindTable(table, displayColumn, valueColumn); this.txtsup_code.GetDataSourced += new ServiceStationClient.ComponentUI.TextBox.TextChooser.GetDataSourceHandler(this.Sup_CodeBindData); }
/// <summary> /// 窗体加载事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCPurchaseOrderManager_Load(object sender, EventArgs e) { base.SetBaseButtonStatus(); base.SetButtonVisiableManager(); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 //运输方式 CommonFuncCall.BindComBoxDataSource(ddltrans_mode, "sys_trans_mode", "全部"); //结算方式 CommonFuncCall.BindBalanceWay(ddlclosing_way, "全部"); CommonFuncCall.BindCompany(ddlCompany, "全部"); CommonFuncCall.BindDepartment(ddlDepartment, "", "全部"); CommonFuncCall.BindHandle(ddlhandle, "", "全部"); CommonFuncCall.BindOrderStatus(ddlState, true); BindgvPurchaseOrderList(); }
/// <summary> 窗体加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCPurchaseBillManangView_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.BindPurchaseOrderType(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.BindIntoStockStatus(ddlStockInStatus2, true, "全部"); //公司ID CommonFuncCall.BindCompany(ddlCompany, "全部"); CommonFuncCall.BindCompany(ddlCompany2, "全部"); CommonFuncCall.BindDepartment(ddlDepartment, "", "全部"); CommonFuncCall.BindHandle(ddlhandle, "", "全部"); }