public UCChooseSaleBill(string order_type, string cust_id) { InitializeComponent(); this.order_type = order_type; this.cust_id = cust_id; dgPurchaseOrder.ReadOnly = false; dgAccessoriesDetail.ReadOnly = false; //unit_id.ReadOnly = true; dateTimeStart.Value = DateTime.Now; dateTimeEnd.Value = DateTime.Now; //CommonFuncCall.BindUnit(unit_id); //公司ID string com_id = GlobalStaticObj.CurrUserCom_Id; CommonFuncCall.BindDepartment(ddlorg_id, com_id, "请选择"); CommonFuncCall.BindHandle(ddlhandle, "", "请选择"); CommonFuncCall.BindHandle(ddloperator, "", "请选择"); BinddgSaleOrder(); }
/// <summary> /// 窗体初始加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCStockReceiptAddOrEdit_Load(object sender, EventArgs e) { try { //出库类型 CommonFuncCall.BindInOutType(Combout_wh_type_name, true, "请选择"); //获取仓库名称 CommonFuncCall.BindWarehouse(Combwh_name, "请选择"); //公司ID string com_id = GlobalStaticObj.CurrUserCom_Id; CommonFuncCall.BindCompany(combcom_name, "全部"); //选择公司名称 CommonFuncCall.BindDepartment(Comborg_name, com_id, "请选择"); //选择部门名称 CommonFuncCall.BindHandle(Combhandle_name, "", "请选择"); //选择经手人 if (status == WindowStatus.Edit || status == WindowStatus.Copy) { GetBillHeadEndMessage(StockShippingId); //获取单据头尾信息 GetBillPartsMsg(StockShippingId); //获取单据配件信息 } else if (status == WindowStatus.Add || status == WindowStatus.Copy) { txtorder_status_name.Caption = DataSources.GetDescription(DataSources.EnumAuditStatus.DRAFT, true);//获取单据状态 } } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
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();//获取销售退货单查询结果 }
private void ddlDepartment_SelectedIndexChanged(object sender, EventArgs e) { if (!string.IsNullOrEmpty(ddlDepartment.SelectedValue.ToString())) { CommonFuncCall.BindHandle(ddlResponsiblePerson, ddlDepartment.SelectedValue.ToString(), "全部"); } }
/// <summary> /// 窗体加载初始化 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCStockReceiptManager_Load(object sender, EventArgs e) { try { //获取默认系统时间 dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString(); dateTimeEnd.Value = DateTime.Now.ToString(); //入库类型 CommonFuncCall.BindInOutType(ComBin_wh_type_name, true, "请选择"); //获取仓库名称 CommonFuncCall.BindWarehouse(ComBwh_name, "请选择"); //单据状态 CommonFuncCall.BindOrderStatus(ComBorder_status_name, true); //公司 CommonFuncCall.BindCompany(ComBcom_name, "全部"); //部门 CommonFuncCall.BindDepartment(ComBorg_name, "", "全部"); //经办人 CommonFuncCall.BindHandle(ComBhandle_name, "", "全部"); } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
/// <summary> /// 窗体初始化加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCRequisitionManager_Load(object sender, EventArgs e) { try { //获取默认系统时间 dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString(); dateTimeEnd.Value = DateTime.Now.ToString(); //单据类型 CommonFuncCall.BindAllotBillType(ComBorder_type_name, true, "请选择");//调拨单类型 //开单类型 CommonFuncCall.BindAllocationBillingType(ComBcall_out_wh_name, true, "请选择"); //获取仓库名称 CommonFuncCall.BindWarehouse(ComBcall_in_wh_name, "请选择"); CommonFuncCall.BindWarehouse(ComBcall_out_wh_name, "请选择"); // 调入机构 CommonFuncCall.BindCompany(ComBcall_in_org_name, "全部"); //运输方式 CommonFuncCall.BindComBoxDataSource(Combtrans_way_name, "sys_trans_mode", "全部"); //单据状态 CommonFuncCall.BindOrderStatus(Comborder_status_name, true); //公司 CommonFuncCall.BindCompany(ComBcom_name, "全部"); //部门 CommonFuncCall.BindDepartment(ComBorg_name, "", "全部"); //经办人 CommonFuncCall.BindHandle(ComBhandle_name, "", "全部"); } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
/// <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 Hashtable PartHTable = new Hashtable(); //存放开单主键ID与对应的配件编号 #endregion #region 窗体初始化 public UCImportSaleReturnBilling(string WhName) { InitializeComponent(); this.WareHosueName = WhName; //获取出入库单据类型 dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString(); //开始时间 dateTimeEnd.Value = DateTime.Now.ToShortDateString(); //结束时间 //CommonFuncCall.BindUnit(unit);//从码表中获取单位名称 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; } } }
/// <summary> 窗体初始化 /// </summary> public UCChoosePurchaseBill(string order_type, string sup_id) { InitializeComponent(); dgAccessoriesDetail.CellFormatting += new DataGridViewCellFormattingEventHandler(dgAccessoriesDetail_CellFormatting); this.order_type = order_type; this.sup_id = sup_id; string[] NotReadOnlyColumnsName1 = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(dgPurchaseOrder, NotReadOnlyColumnsName1); string[] NotReadOnlyColumnsName2 = new string[] { "colDetailCheck" }; CommonFuncCall.SetColumnReadOnly(dgAccessoriesDetail, NotReadOnlyColumnsName2); //unit_id.ReadOnly = true; dateTimeStart.Value = DateTime.Now; dateTimeEnd.Value = DateTime.Now; //CommonFuncCall.BindUnit(unit_id); //公司ID string com_id = GlobalStaticObj.CurrUserCom_Id; CommonFuncCall.BindDepartment(ddlorg_id, com_id, "请选择"); CommonFuncCall.BindHandle(ddlhandle, "", "请选择"); CommonFuncCall.BindHandle(ddloperator, "", "请选择"); BinddgPurchaseOrder(); //注册配件编码速查 Choosefrm.PartsCodeChoose(txtparts_code, Choosefrm.delDataBack = PartsName_DataBack); //注册配件名称速查 Choosefrm.PartsNameChoose(txtparts_name, Choosefrm.delDataBack = null); //注册配件类型速查 Choosefrm.PartsTypeNameChoose(txtparts_type, Choosefrm.delDataBack = null); }
/// <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(); }
/// <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 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(); }
/// <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 UCAllocationQuery_Load(object sender, EventArgs e) { try { base.SetBtnStatus(WindowStatus.View);// 根据窗体状态更改控件状态 //根据出入库单查询出入库单 dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString(); dateTimeEnd.Value = DateTime.Now.ToString(); CommonFuncCall.BindAllocationBillType(Comborder_type_name, true, "请选择"); //单据类型 CommonFuncCall.BindInStockBillingType(Combbilling_type_name, true, "请选择"); //开单类型 CommonFuncCall.BindWarehouse(CombWarehouse, "请选择"); //获取仓库名称 string com_id = GlobalStaticObj.CurrUserCom_Id; //公司ID CommonFuncCall.BindCompany(CombCompany, "全部"); //选择公司名称 CommonFuncCall.BindDepartment(CombDepartment, com_id, "全部"); //选择部门名称 CommonFuncCall.BindHandle(Combhandle, "", "全部"); //选择经办人 CommonFuncCall.BindHandle(CombOperator, "", "全部"); //选择操作人 //根据配件或往来单位查询出入库单 dateTimePartStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString(); dateTimePartEnd.Value = DateTime.Now.ToString(); CommonFuncCall.BindCompany(CombCompany, "全部");//公司ID CommonFuncCall.BindCompany(CombPartCompany, "全部"); CommonFuncCall.BindDepartment(CombDepartment, "", "全部"); CommonFuncCall.BindHandle(Combhandle, "", "全部"); CommonFuncCall.BindIs_Gift(Combis_gift, true);//是否赠品 } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
/// <summary> /// 窗体初始加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCRequisitionAddOrEdit_Load(object sender, EventArgs e) { try { CommonFuncCall.BindAllotBillType(Comborder_type_name, true, "请选择"); //调拨单类型 CommonFuncCall.BindComBoxDataSource(Combtrans_way_name, "sys_trans_mode", "请选择"); //运输方式 CommonFuncCall.BindCompany(combcall_out_org_name, "请选择"); //调出机构 CommonFuncCall.BindCompany(combcall_in_org_name, "请选择"); //调入机构 CommonFuncCall.BindWarehouse(combcall_out_wh_name, "请选择"); //调出仓库 CommonFuncCall.BindWarehouse(combcall_in_wh_name, "请选择"); //调入仓库 BrandTable = CommonFuncCall.BindDicDataSource("sys_parts_brand"); //获得品牌名称 //公司ID string com_id = GlobalStaticObj.CurrUserCom_Id; CommonFuncCall.BindDepartment(Comborg_name, com_id, "请选择"); //选择部门名称 CommonFuncCall.BindHandle(Combhandle_name, "", "请选择"); //选择经手人 if (status == WindowStatus.Edit || status == WindowStatus.Copy) { GetBillHeadEndMessage(AllotBillId); //获取单据头尾信息 GetBillPartsMsg(AllotBillId); //获取单据配件信息 } else if (status == WindowStatus.Add || status == WindowStatus.Copy) { txtorder_status_name.Caption = DataSources.GetDescription(DataSources.EnumAuditStatus.DRAFT, true);//获取单据状态 } } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
/// <summary> 窗体初始化 /// </summary> /// <param name="RelationType">调用方是否是宇通采购订单</param> public UCChoosePurchasePlanOrder(string RelationType) { InitializeComponent(); this.RelationType = RelationType; string[] NotReadOnlyColumnsName1 = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(dgPurchasePlan, NotReadOnlyColumnsName1); string[] NotReadOnlyColumnsName2 = new string[] { "colDetailCheck" }; CommonFuncCall.SetColumnReadOnly(dgAccessoriesDetail, NotReadOnlyColumnsName2); //unit_id.ReadOnly = true; dateTimeStart.Value = DateTime.Now; dateTimeEnd.Value = DateTime.Now; //CommonFuncCall.BindUnit(unit_id); //公司ID string com_id = GlobalStaticObj.CurrUserCom_Id; CommonFuncCall.BindDepartment(ddlorg_id, com_id, "请选择"); CommonFuncCall.BindHandle(ddlhandle, "", "请选择"); CommonFuncCall.BindHandle(ddloperator, "", "请选择"); BinddgPurchasePlan(); //注册配件编码速查 Choosefrm.PartsCodeChoose(txtparts_code, Choosefrm.delDataBack = PartsName_DataBack); //注册配件名称速查 Choosefrm.PartsNameChoose(txtparts_name, Choosefrm.delDataBack = null); //注册配件类型速查 Choosefrm.PartsTypeNameChoose(txtparts_type, Choosefrm.delDataBack = null); }
//选择部门 private void cboOrgId_SelectedIndexChanged(object sender, EventArgs e) { if (cboOrgId.SelectedValue == null) { return; } CommonFuncCall.BindHandle(cboHandle, cboOrgId.SelectedValue.ToString(), "全部"); }
/// <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 ddlDepartment_SelectedIndexChanged(object sender, EventArgs e) { if (!string.IsNullOrEmpty(ComBorg_name.SelectedValue.ToString())) { CommonFuncCall.BindHandle(ComBhandle_name, ComBorg_name.SelectedValue.ToString(), "全部"); } else { CommonFuncCall.BindHandle(ComBhandle_name, "", "全部"); } }
/// <summary> /// 公司选择事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ddlCompany_SelectedIndexChanged(object sender, EventArgs e) { if (!string.IsNullOrEmpty(ddlCompany.SelectedValue.ToString())) { CommonFuncCall.BindDepartment(ddlDepartment, ddlCompany.SelectedValue.ToString(), "全部"); } else { CommonFuncCall.BindDepartment(ddlDepartment, "", "全部"); CommonFuncCall.BindHandle(ddlhandle, "", "全部"); } }
/// <summary> /// 选择部门事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ddlDepartment_SelectedIndexChanged(object sender, EventArgs e) { if (!string.IsNullOrEmpty(CombDepartment.SelectedValue.ToString())) { CommonFuncCall.BindHandle(Combhandle, CombDepartment.SelectedValue.ToString(), "全部"); CommonFuncCall.BindHandle(CombOperator, CombDepartment.SelectedValue.ToString(), "全部");//选择操作人 } else { CommonFuncCall.BindHandle(Combhandle, "", "全部"); CommonFuncCall.BindHandle(CombOperator, "", "全部");//选择操作人 } }
/// <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); }
public Hashtable PartHTable = new Hashtable(); //存放开单主键ID与对应的配件编号 #endregion #region 窗体初始化 public UCImportSaleReturnBilling(string WhName) { InitializeComponent(); this.WareHosueName = WhName; //获取出入库单据类型 dateTimeStart.Value = DateTime.Now.ToShortDateString(); //开始时间 dateTimeEnd.Value = DateTime.Now.ToShortDateString(); //结束时间 CommonFuncCall.BindUnit(unit); //从码表中获取单位名称 string com_id = GlobalStaticObj.CurrUserCom_Id; //公司ID CommonFuncCall.BindDepartment(ddlorg_id, com_id, DefaultValue); //部门名称 CommonFuncCall.BindHandle(ddlhandle, "", DefaultValue); //经手人 CommonFuncCall.BindHandle(ddloperator, "", DefaultValue); //操作人 }
/// <summary> /// 根据部门的选择绑定经办人 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cboOrgId_SelectedIndexChanged(object sender, EventArgs e) { try { if (cboOrgId.SelectedValue == null) { return; } CommonFuncCall.BindHandle(cobYHandle, cboOrgId.SelectedValue.ToString(), "请选择"); } catch (Exception ex) { HXCPcClient.GlobalStaticObj.GlobalLogService.WriteLog(ex); } }
public Hashtable PartHTable = new Hashtable(); //存放开单主键ID与对应的配件编号 #endregion #region 窗体初始化 public UCImportStockBill(string Bill_Type, string Billing_Type) { InitializeComponent(); this.Text = PrefixCaption + Billing_Type; //获取主窗体标题内容 this.BillType = Bill_Type; //获取出入库单据类型 this.BillingType = Billing_Type; //获取开单类型 dateTimeStart.Value = DateTime.Now.ToShortDateString(); //开始时间 dateTimeEnd.Value = DateTime.Now.ToShortDateString(); //结束时间 CommonFuncCall.BindUnit(unit); //从码表中获取单位名称 string com_id = GlobalStaticObj.CurrUserCom_Id; //公司ID CommonFuncCall.BindDepartment(ddlorg_id, com_id, DefaultValue); //部门名称 CommonFuncCall.BindHandle(ddlhandle, "", DefaultValue); //经手人 CommonFuncCall.BindHandle(ddloperator, "", DefaultValue); //操作人 }
/// <summary> /// 窗体加载方法 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCPurchasePlanOrderManager_Load(object sender, EventArgs e) { base.SetBaseButtonStatus(); base.SetButtonVisiableManagerSearch(); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchasePlanOrderList, NotReadOnlyColumnsName); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 //禁止列表自增列 gvPurchasePlanOrderList.AutoGenerateColumns = false; dateTimeStart.Value = DateTime.Now; dateTimeEnd.Value = DateTime.Now; string com_id = GlobalStaticObj.CurrUserCom_Id;//公司ID CommonFuncCall.BindDepartment(ddlDepartment, com_id, "全部"); CommonFuncCall.BindHandle(ddlResponsiblePerson, "", "全部"); CommonFuncCall.BindPurchasePlanFinishStatus(ddlFinishStatus, true); BindgvPurchasePlanOrderList(); }
/// <summary> 窗体初始化 /// </summary> public UCChooseSalePlanOrder() { InitializeComponent(); dgSalePlan.ReadOnly = false; dgAccessoriesDetail.ReadOnly = false; //unit_id.ReadOnly = true; dateTimeStart.Value = DateTime.Now; dateTimeEnd.Value = DateTime.Now; //CommonFuncCall.BindUnit(unit_id); //公司ID string com_id = GlobalStaticObj.CurrUserCom_Id; CommonFuncCall.BindDepartment(ddlorg_id, com_id, "请选择"); CommonFuncCall.BindHandle(ddlhandle, "", "请选择"); CommonFuncCall.BindHandle(ddloperator, "", "请选择"); }
/// <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, "", "全部"); }
//private long CurrteTimeTicks = 0; #endregion #region 初始化窗体 /// <summary> 初始化窗体 /// </summary> public UCPurchasePlanOrderManagView() { InitializeComponent(); //base.SetBaseButtonStatus(); //base.SetButtonVisiableManagerSearch(); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchasePlanOrderList, NotReadOnlyColumnsName); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 //禁止列表自增列 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); }