/// <summary> 窗体初始化 /// </summary> /// <param name="sale_order_id"></param> /// <param name="order_status"></param> /// <param name="uc"></param> public UCSaleOrderView(string sale_order_id, string order_status, UCSaleOrderManager uc) { InitializeComponent(); this.uc = uc; this.SaleorderId = sale_order_id; base.SetBaseButtonStatus(); if (uc != null) { base.SetButtonVisiableView(); base.btnSave.Visible = true; } base.InvalidOrActivationEvent += new ClickHandler(UCPurchasePlanOrderView_InvalidOrActivationEvent); string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseList, NotReadOnlyColumnsName); //当采购订单状态是已审核时才可以中止,否则不可以中止 DataSources.EnumAuditStatus enumDataSources = (DataSources.EnumAuditStatus)Convert.ToInt16(order_status); if (enumDataSources != DataSources.EnumAuditStatus.AUDIT) { chkis_suspend.Enabled = false; is_suspend.ReadOnly = true; } //CommonFuncCall.BindUnit(unit_id); LoadInfo(sale_order_id); GetAccessories(sale_order_id); base.SaveEvent += new ClickHandler(UCSaleOrderView_SaveEvent); }
public UCSaleOrderView(string sale_order_id, string order_status, UCSaleOrderManager uc) { InitializeComponent(); this.uc = uc; this.SaleorderId = sale_order_id; base.SetBaseButtonStatus(); if (uc != null) { base.SetButtonVisiableView(); base.btnSave.Visible = true; } string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseList, NotReadOnlyColumnsName); //当采购订单状态是已审核时才可以中止,否则不可以中止 DataSources.EnumAuditStatus enumDataSources = (DataSources.EnumAuditStatus)Convert.ToInt16(order_status); if (enumDataSources != DataSources.EnumAuditStatus.AUDIT) { chkis_suspend.Enabled = false; is_suspend.ReadOnly = true; } //CommonFuncCall.BindUnit(unit_id); LoadInfo(sale_order_id); GetAccessories(sale_order_id); base.SaveEvent += new ClickHandler(UCSaleOrderView_SaveEvent); }
/// <summary> /// 初始化窗体 /// </summary> /// <param name="status"></param> /// <param name="sale_order_id"></param> /// <param name="uc"></param> public UCSaleOrderAddOrEdit(WindowStatus status, string sale_order_id, UCSaleOrderManager uc) { InitializeComponent(); this.status = status; this.uc = uc; this.sale_order_id = sale_order_id; base.SaveEvent += new ClickHandler(UCSaleOrderAddOrEdit_SaveEvent); base.SubmitEvent += new ClickHandler(UCSaleOrderAddOrEdit_SubmitEvent); base.ImportEvent += new ClickHandler(UCSaleOrderAddOrEdit_ImportEvent); txtcontract_no.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtcontract_no_UserControlValueChanged); txtadvance_money.KeyPress+=new KeyPressEventHandler(txtadvance_money_KeyPress); txtadvance_money.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtadvance_money_UserControlValueChanged); ddldelivery_time.ValueChanged += new EventHandler(ddldelivery_time_ValueChanged); gvPurchaseList.CellDoubleClick += new DataGridViewCellEventHandler(gvPurchaseList_CellDoubleClick); business_count.ValueType = typeof(decimal); business_count.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; tax_rate.ValueType = typeof(decimal); tax_rate.MaxInputLength = 3; }
/// <summary> /// 初始化窗体 /// </summary> /// <param name="status"></param> /// <param name="sale_order_id"></param> /// <param name="uc"></param> public UCSaleOrderAddOrEdit(WindowStatus status, string sale_order_id, UCSaleOrderManager uc) { InitializeComponent(); this.status = status; this.uc = uc; this.sale_order_id = sale_order_id; base.SaveEvent += new ClickHandler(UCSaleOrderAddOrEdit_SaveEvent); base.SubmitEvent += new ClickHandler(UCSaleOrderAddOrEdit_SubmitEvent); base.ImportEvent += new ClickHandler(UCSaleOrderAddOrEdit_ImportEvent); }
private void picXsdd_Click(object sender, EventArgs e) { UCSaleOrderManager uc = new UCSaleOrderManager(); string tag = "CL_AccessoriesBusiness|CL_SaleManagement_Function|CL_SaleOrder_Function"; UCBase.AddUserControl(uc, "销售订单", "CL_SaleOrder_Function", tag, ""); }