/// <summary> /// 初始化窗体 /// </summary> /// <param name="status"></param> /// <param name="plan_id"></param> /// <param name="uc"></param> public UCPurchasePlanOrderAddOrEdit(WindowStatus status, string plan_id, UCPurchasePlanOrderManager uc) { InitializeComponent(); this.uc = uc; this.status = status; this.plan_id = plan_id; base.SaveEvent += new ClickHandler(UCPurchasePlanOrderAddOrEdit_SaveEvent); base.SubmitEvent += new ClickHandler(UCPurchasePlanOrderAddOrEdit_SubmitEvent); }
public UCPurchasePlanOrderView(string plan_id,UCPurchasePlanOrderManager uc) { InitializeComponent(); this.uc = uc; this.planId = plan_id; base.SetBaseButtonStatus(); base.SetButtonVisiableView(); base.btnSave.Visible = true; //CommonFuncCall.BindUnit(unit_id); LoadInfo(plan_id); GetAccessories(plan_id); txtsuspend_reason.Enabled = chkis_suspend.Checked; string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" }; CommonFuncCall.SetColumnReadOnly(gvPurchasePlanList, NotReadOnlyColumnsName); base.SaveEvent += new ClickHandler(UCPurchasePlanOrderView_SaveEvent); }
public UCPurchasePlanOrderView(string plan_id, UCPurchasePlanOrderManager uc) { InitializeComponent(); this.uc = uc; this.planId = plan_id; base.SetBaseButtonStatus(); base.SetButtonVisiableView(); base.btnSave.Visible = true; //CommonFuncCall.BindUnit(unit_id); LoadInfo(plan_id); GetAccessories(plan_id); txtsuspend_reason.Enabled = chkis_suspend.Checked; string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" }; CommonFuncCall.SetColumnReadOnly(gvPurchasePlanList, NotReadOnlyColumnsName); base.SaveEvent += new ClickHandler(UCPurchasePlanOrderView_SaveEvent); }
/// <summary> /// 初始化窗体 /// </summary> /// <param name="status"></param> /// <param name="plan_id"></param> /// <param name="uc"></param> public UCPurchasePlanOrderAddOrEdit(WindowStatus status, string plan_id, UCPurchasePlanOrderManager uc) { InitializeComponent(); this.uc = uc; this.status = status; this.plan_id = plan_id; base.SaveEvent += new ClickHandler(UCPurchasePlanOrderAddOrEdit_SaveEvent); base.SubmitEvent += new ClickHandler(UCPurchasePlanOrderAddOrEdit_SubmitEvent); gvPurchasePlanList.CellDoubleClick += new DataGridViewCellEventHandler(gvPurchasePlanList_CellDoubleClick); business_counts.ValueType = typeof(decimal); business_counts.MaxInputLength = 9; original_price.ValueType = typeof(decimal); original_price.MaxInputLength = 9; discount.ValueType = typeof(decimal); discount.MaxInputLength = 3; business_price.ValueType = typeof(decimal); business_price.MaxInputLength = 9; }
public UCPurchasePlanOrderView(string plan_id,UCPurchasePlanOrderManager uc) { InitializeComponent(); this.uc = uc; this.planId = plan_id; base.SetBaseButtonStatus(); if (uc != null) { base.SetButtonVisiableView(); base.btnSave.Visible = true; } //CommonFuncCall.BindUnit(unit_id); LoadInfo(plan_id); GetAccessories(plan_id); string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" }; CommonFuncCall.SetColumnReadOnly(gvPurchasePlanList, NotReadOnlyColumnsName); base.SaveEvent += new ClickHandler(UCPurchasePlanOrderView_SaveEvent); base.InvalidOrActivationEvent += new ClickHandler(UCPurchasePlanOrderView_InvalidOrActivationEvent); gvPurchasePlanList.CellClick += new DataGridViewCellEventHandler(gvPurchasePlanList_CellClick); }
public UCPurchasePlanOrderView(string plan_id, UCPurchasePlanOrderManager uc) { InitializeComponent(); this.uc = uc; this.planId = plan_id; base.SetBaseButtonStatus(); if (uc != null) { base.SetButtonVisiableView(); base.btnSave.Visible = true; } //CommonFuncCall.BindUnit(unit_id); LoadInfo(plan_id); GetAccessories(plan_id); string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" }; CommonFuncCall.SetColumnReadOnly(gvPurchasePlanList, NotReadOnlyColumnsName); base.SaveEvent += new ClickHandler(UCPurchasePlanOrderView_SaveEvent); base.InvalidOrActivationEvent += new ClickHandler(UCPurchasePlanOrderView_InvalidOrActivationEvent); gvPurchasePlanList.CellClick += new DataGridViewCellEventHandler(gvPurchasePlanList_CellClick); }
private void picCgjh_Click(object sender, EventArgs e) { UCPurchasePlanOrderManager uc = new UCPurchasePlanOrderManager(); string tag = "CL_AccessoriesBusiness|CL_PurchaseManagement_Function|CL_PurchasePlan_Function"; UCBase.AddUserControl(uc, "采购计划", "CL_PurchasePlan_Function", tag, ""); }