/// <summary> /// 窗体初始化 /// </summary> /// <param name="status"></param> /// <param name="purchase_billing_id"></param> /// <param name="uc"></param> public UCPurchaseBillAddOrEdit(WindowStatus status, string purchase_billing_id, UCPurchaseBillManang uc) { InitializeComponent(); this.uc = uc; this.status = status; this.purchase_billing_id = purchase_billing_id; base.SaveEvent += new ClickHandler(UCPurchaseBillAddOrEdit_SaveEvent); base.SubmitEvent += new ClickHandler(UCPurchaseBillAddOrEdit_SubmitEvent); base.ImportEvent += new ClickHandler(UCPurchaseBillAddOrEdit_ImportEvent); }
public UCPurchaseBillView(string purchase_billing_id, UCPurchaseBillManang uc) { InitializeComponent(); base.SetBaseButtonStatus(); base.SetButtonVisiableView(); //CommonFuncCall.BindWarehouse(wh_id); //CommonFuncCall.BindUnit(unit_id); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseList, NotReadOnlyColumnsName); LoadInfo(purchase_billing_id); GetAccessories(purchase_billing_id); }
public UCPurchaseBillView(string purchase_billing_id, UCPurchaseBillManang uc) { InitializeComponent(); base.SetBaseButtonStatus(); base.SetButtonVisiableView(); //CommonFuncCall.BindWarehouse(wh_id); //CommonFuncCall.BindUnit(unit_id); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseList, NotReadOnlyColumnsName); LoadInfo(purchase_billing_id); GetAccessories(purchase_billing_id); }
public UCPurchaseBillView(string purchase_billing_id, UCPurchaseBillManang uc) { InitializeComponent(); this.uc = uc; this.purchase_billing_id = purchase_billing_id; base.SetBaseButtonStatus(); if (uc != null) { base.SetButtonVisiableView(); } //CommonFuncCall.BindWarehouse(wh_id); //CommonFuncCall.BindUnit(unit_id); base.InvalidOrActivationEvent += new ClickHandler(UCPurchasePlanOrderView_InvalidOrActivationEvent); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseList, NotReadOnlyColumnsName); LoadInfo(purchase_billing_id); GetAccessories(purchase_billing_id); }
public UCPurchaseBillView(string purchase_billing_id, UCPurchaseBillManang uc) { InitializeComponent(); this.uc = uc; this.purchase_billing_id = purchase_billing_id; base.SetBaseButtonStatus(); if (uc != null) { base.SetButtonVisiableView(); } //CommonFuncCall.BindWarehouse(wh_id); //CommonFuncCall.BindUnit(unit_id); base.InvalidOrActivationEvent += new ClickHandler(UCPurchasePlanOrderView_InvalidOrActivationEvent); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseList, NotReadOnlyColumnsName); LoadInfo(purchase_billing_id); GetAccessories(purchase_billing_id); }
/// <summary> /// 窗体初始化 /// </summary> /// <param name="status"></param> /// <param name="purchase_billing_id"></param> /// <param name="uc"></param> public UCPurchaseBillAddOrEdit(WindowStatus status, string purchase_billing_id, UCPurchaseBillManang uc) { InitializeComponent(); this.uc = uc; this.status = status; this.purchase_billing_id = purchase_billing_id; this.Resize += new EventHandler(UCPurchaseBillAddOrEdit_Resize); base.SaveEvent += new ClickHandler(UCPurchaseBillAddOrEdit_SaveEvent); base.SubmitEvent += new ClickHandler(UCPurchaseBillAddOrEdit_SubmitEvent); base.ImportEvent += new ClickHandler(UCPurchaseBillAddOrEdit_ImportEvent); base.CancelEvent += new ClickHandler(UCPurchaseBillAddOrEdit_CancelEvent); ddlorder_type.SelectedValueChanged += new EventHandler(ddlorder_type_SelectedValueChanged); gvPurchaseList.CellDoubleClick += new DataGridViewCellEventHandler(gvPurchaseList_CellDoubleClick); txtpayment_limit.KeyPress+=new KeyPressEventHandler(txtpayment_limit_KeyPress); txtpayment_limit.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtpayment_limit_UserControlValueChanged); txtthis_payment.KeyPress+=new KeyPressEventHandler(txtthis_payment_KeyPress); txtthis_payment.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtthis_payment_UserControlValueChanged); txtsup_arrears.KeyPress+=new KeyPressEventHandler(txtsup_arrears_KeyPress); txtsup_arrears.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtsup_arrears_UserControlValueChanged); txtwhythe_discount.KeyPress+=new KeyPressEventHandler(txtwhythe_discount_KeyPress); txtwhythe_discount.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtwhythe_discount_UserControlValueChanged); txtbalance_money.KeyPress+=new KeyPressEventHandler(txtbalance_money_KeyPress); txtbalance_money.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtbalance_money_UserControlValueChanged); txtreceipt_no.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtreceipt_no_UserControlValueChanged); txtcheck_number.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtcheck_number_UserControlValueChanged); 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; tax_rate.ValueType = typeof(decimal); tax_rate.MaxInputLength = 3; }
private void piccgkd_Click(object sender, EventArgs e) { UCPurchaseBillManang uc = new UCPurchaseBillManang(); string tag = "CL_AccessoriesBusiness|CL_PurchaseManagement_Function|CL_UCPurchaseBill_Function"; UCBase.AddUserControl(uc, "采购开单", "CL_UCPurchaseBill_Function", tag, ""); }