コード例 #1
0
        /// <summary>
        /// 窗体初始化
        /// </summary>
        /// <param name="status"></param>
        /// <param name="sale_billing_id"></param>
        /// <param name="uc"></param>
        public UCSaleBillAddOrEdit(WindowStatus status, string sale_billing_id, UCSaleBillManang uc)
        {
            InitializeComponent();

            this.status = status;
            this.sale_billing_id = sale_billing_id;
            this.uc = uc;
            base.SaveEvent += new ClickHandler(UCSaleBillAddOrEdit_SaveEvent);
            base.SubmitEvent += new ClickHandler(UCSaleBillAddOrEdit_SubmitEvent);
            base.ImportEvent += new ClickHandler(UCSaleBillAddOrEdit_ImportEvent);
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        /// <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);
        }
コード例 #4
0
        /// <summary> 窗体初始化
        /// </summary>
        /// <param name="status"></param>
        /// <param name="sale_billing_id"></param>
        /// <param name="uc"></param>
        public UCSaleBillAddOrEdit(WindowStatus status, string sale_billing_id, UCSaleBillManang uc)
        {
            InitializeComponent();
            this.uc = uc;
            this.status = status;
            this.sale_billing_id = sale_billing_id;
            this.Resize += new EventHandler(UCSaleBillAddOrEdit_Resize);
            base.SaveEvent += new ClickHandler(UCSaleBillAddOrEdit_SaveEvent);
            base.SubmitEvent += new ClickHandler(UCSaleBillAddOrEdit_SubmitEvent);
            base.ImportEvent += new ClickHandler(UCSaleBillAddOrEdit_ImportEvent);
            base.CancelEvent += new ClickHandler(UCSaleBillAddOrEdit_CancelEvent);
            ddlorder_type.SelectedValueChanged += new EventHandler(ddlorder_type_SelectedValueChanged);
            gvPurchaseList.CellDoubleClick += new DataGridViewCellEventHandler(gvPurchaseList_CellDoubleClick);

            txtreceivables_limit.KeyPress += new KeyPressEventHandler(txtreceivables_limit_KeyPress);
            txtreceivables_limit.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtreceivables_limit_UserControlValueChanged);

            txtcurrent_collect.KeyPress += new KeyPressEventHandler(txtcurrent_collect_KeyPress);
            txtcurrent_collect.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtcurrent_collect_UserControlValueChanged);

            txtcust_arrears.KeyPress += new KeyPressEventHandler(txtcust_arrears_KeyPress);
            txtcust_arrears.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtcust_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_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;
        }
コード例 #5
0
 /// <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);
 }
コード例 #6
0
 /// <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);
 }
コード例 #7
0
 private void picXskd_Click(object sender, EventArgs e)
 {
     UCSaleBillManang uc = new UCSaleBillManang();
     string tag = "CL_AccessoriesBusiness|CL_SaleManagement_Function|CL_SaleBill_Function";
     UCBase.AddUserControl(uc, "销售开单", "CL_SaleBill_Function", tag, "");
 }