/// <summary> /// 窗体初始加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCRequisitionAddOrEdit_Load(object sender, EventArgs e) { try { CommonFuncCall.BindAllotBillType(Comborder_type_name, true, "请选择"); //调拨单类型 CommonFuncCall.BindComBoxDataSource(Combtrans_way_name, "sys_trans_mode", "请选择"); //运输方式 CommonFuncCall.BindCompany(combcall_out_org_name, "请选择"); //调出机构 CommonFuncCall.BindCompany(combcall_in_org_name, "请选择"); //调入机构 CommonFuncCall.BindWarehouse(combcall_out_wh_name, "请选择"); //调出仓库 CommonFuncCall.BindWarehouse(combcall_in_wh_name, "请选择"); //调入仓库 BrandTable = CommonFuncCall.BindDicDataSource("sys_parts_brand"); //获得品牌名称 if (status == WindowStatus.Edit || status == WindowStatus.Copy) { GetBillHeadEndMessage(AllotBillId); //获取单据头尾信息 GetBillPartsMsg(AllotBillId); //获取单据配件信息 } else if (status == WindowStatus.Add || status == WindowStatus.Copy) { txtorder_status_name.Caption = DataSources.GetDescription(DataSources.EnumAuditStatus.DRAFT, true);//获取单据状态 } } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
/// <summary> /// 窗体初始化 /// </summary> /// <param name="status"></param> /// <param name="sale_billing_id"></param> /// <param name="uc"></param> public UCSaleBillView(string sale_billing_id, UCSaleBillManang uc) { InitializeComponent(); //CommonFuncCall.BindWarehouse(wh_id); //CommonFuncCall.BindUnit(unit_id); base.SetBaseButtonStatus(); base.SetButtonVisiableView(); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseList, NotReadOnlyColumnsName); dt_parts_brand = CommonFuncCall.BindDicDataSource("sys_parts_brand"); LoadInfo(sale_billing_id); GetAccessories(sale_billing_id); }
public UCSalePlanViewSearch(string plan_id, UCSalePlanManagerSearch uc) { InitializeComponent(); base.SetBaseButtonStatus(); base.SetButtonVisiableView(); base.btnSave.Visible = true; this.planId = plan_id; this.uc = uc; string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" }; CommonFuncCall.SetColumnReadOnly(gvPurchasePlanList, NotReadOnlyColumnsName); //CommonFuncCall.BindUnit(unit_id); dt_parts_brand = CommonFuncCall.BindDicDataSource("sys_parts_brand"); LoadInfo(plan_id); GetAccessories(plan_id); txtsuspend_reason.Enabled = chkis_suspend.Checked; gvPurchasePlanList.CellClick += new DataGridViewCellEventHandler(gvPurchasePlanList_CellClick); }
/// <summary> /// 窗体初始化 /// </summary> /// <param name="status"></param> /// <param name="sale_billing_id"></param> /// <param name="uc"></param> public UCSaleBillView(string sale_billing_id, UCSaleBillManang uc) { InitializeComponent(); //CommonFuncCall.BindWarehouse(wh_id); //CommonFuncCall.BindUnit(unit_id); this.uc = uc; this.sale_billing_id = sale_billing_id; base.SetBaseButtonStatus(); if (uc != null) { base.SetButtonVisiableView(); } base.InvalidOrActivationEvent += new ClickHandler(UCPurchasePlanOrderView_InvalidOrActivationEvent); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseList, NotReadOnlyColumnsName); dt_parts_brand = CommonFuncCall.BindDicDataSource("sys_parts_brand"); LoadInfo(sale_billing_id); GetAccessories(sale_billing_id); }