예제 #1
0
 /// <summary>
 /// 初始化窗体
 /// </summary>
 /// <param name="status"></param>
 /// <param name="sale_plan_id"></param>
 /// <param name="uc"></param>
 public UCSalePlanAddOrEdit(WindowStatus status, string sale_plan_id, UCSalePlanManager uc)
 {
     InitializeComponent();
     this.uc = uc;
     this.status = status;
     this.sale_plan_id = sale_plan_id;
     base.SaveEvent += new ClickHandler(UCSalePlanAddOrEdit_SaveEvent);
     base.SubmitEvent += new ClickHandler(UCSalePlanAddOrEdit_SubmitEvent);
 }
예제 #2
0
        public UCSalePlanView(string sale_plan_id, UCSalePlanManager uc)
        {
            InitializeComponent();
            base.SetBaseButtonStatus();
            base.SetButtonVisiableView();
            base.btnSave.Visible = true;
            this.planId = sale_plan_id;
            this.uc = uc;

            string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" };
            CommonFuncCall.SetColumnReadOnly(gvPurchasePlanList, NotReadOnlyColumnsName);

            //CommonFuncCall.BindUnit(unit_id);
            LoadInfo(sale_plan_id);
            GetAccessories(sale_plan_id);
            txtsuspend_reason.Enabled = chkis_suspend.Checked;
            base.SaveEvent += new ClickHandler(UCSalePlanView_SaveEvent);
        }
예제 #3
0
        public UCSalePlanView(string sale_plan_id, UCSalePlanManager uc)
        {
            InitializeComponent();
            base.SetBaseButtonStatus();
            base.SetButtonVisiableView();
            base.btnSave.Visible = true;
            this.planId          = sale_plan_id;
            this.uc = uc;

            string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" };
            CommonFuncCall.SetColumnReadOnly(gvPurchasePlanList, NotReadOnlyColumnsName);

            //CommonFuncCall.BindUnit(unit_id);
            LoadInfo(sale_plan_id);
            GetAccessories(sale_plan_id);
            txtsuspend_reason.Enabled = chkis_suspend.Checked;
            base.SaveEvent           += new ClickHandler(UCSalePlanView_SaveEvent);
        }
예제 #4
0
        /// <summary> 初始化窗体
        /// </summary>
        /// <param name="status"></param>
        /// <param name="sale_plan_id"></param>
        /// <param name="uc"></param>
        public UCSalePlanAddOrEdit(WindowStatus status, string sale_plan_id, UCSalePlanManager uc)
        {
            InitializeComponent();
            this.uc = uc;
            this.status = status;
            this.sale_plan_id = sale_plan_id;
            base.SaveEvent += new ClickHandler(UCSalePlanAddOrEdit_SaveEvent);
            base.SubmitEvent += new ClickHandler(UCSalePlanAddOrEdit_SubmitEvent);
            gvPurchasePlanList.CellDoubleClick += new DataGridViewCellEventHandler(gvPurchasePlanList_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;
        }
예제 #5
0
 /// <summary> 窗体初始化
 /// </summary>
 /// <param name="sale_order_id"></param>
 /// <param name="order_status"></param>
 /// <param name="uc"></param>
 public UCSalePlanView(string sale_plan_id, UCSalePlanManager uc)
 {
     InitializeComponent();
     this.uc     = uc;
     this.planId = sale_plan_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(gvPurchasePlanList, NotReadOnlyColumnsName);
     //CommonFuncCall.BindUnit(unit_id);
     LoadInfo(sale_plan_id);
     GetAccessories(sale_plan_id);
     //txtsuspend_reason.Enabled = chkis_suspend.Checked;
     base.SaveEvent += new ClickHandler(UCSalePlanView_SaveEvent);
     gvPurchasePlanList.CellClick += new DataGridViewCellEventHandler(gvPurchasePlanList_CellClick);
 }
예제 #6
0
 /// <summary> 窗体初始化
 /// </summary>
 /// <param name="sale_order_id"></param>
 /// <param name="order_status"></param>
 /// <param name="uc"></param>
 public UCSalePlanView(string sale_plan_id, UCSalePlanManager uc)
 {
     InitializeComponent();
     this.uc = uc;
     this.planId = sale_plan_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(gvPurchasePlanList, NotReadOnlyColumnsName);
     //CommonFuncCall.BindUnit(unit_id);
     LoadInfo(sale_plan_id);
     GetAccessories(sale_plan_id);
     //txtsuspend_reason.Enabled = chkis_suspend.Checked;
     base.SaveEvent += new ClickHandler(UCSalePlanView_SaveEvent);
     gvPurchasePlanList.CellClick += new DataGridViewCellEventHandler(gvPurchasePlanList_CellClick);
 }
예제 #7
0
 private void picXsjh_Click(object sender, EventArgs e)
 {
     UCSalePlanManager uc = new UCSalePlanManager();
     string tag = "CL_AccessoriesBusiness|CL_SaleManagement_Function|CL_SalePlan_Function";
     UCBase.AddUserControl(uc, "销售计划", "CL_SalePlan_Function", tag, "");
 }