예제 #1
0
 public UCSalePlanViewSearch(string plan_id, UCSalePlanManagerSearch uc)
 {
     InitializeComponent();
     base.SetBaseButtonStatus();
     base.SetButtonVisiableView();
     base.btnSave.Visible = true;
     this.planId          = plan_id;
     this.uc = uc;
     string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" };
     CommonFuncCall.SetColumnReadOnly(gvPurchasePlanList, NotReadOnlyColumnsName);
     //CommonFuncCall.BindUnit(unit_id);
     dt_parts_brand = CommonFuncCall.BindDicDataSource("sys_parts_brand");
     LoadInfo(plan_id);
     GetAccessories(plan_id);
     txtsuspend_reason.Enabled     = chkis_suspend.Checked;
     gvPurchasePlanList.CellClick += new DataGridViewCellEventHandler(gvPurchasePlanList_CellClick);
 }
 public UCSalePlanViewSearch(string plan_id, UCSalePlanManagerSearch uc)
 {
     InitializeComponent();
     base.SetBaseButtonStatus();
     base.SetButtonVisiableView();
     base.btnSave.Visible = true;
     this.planId = plan_id;
     this.uc = uc;
     string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" };
     CommonFuncCall.SetColumnReadOnly(gvPurchasePlanList, NotReadOnlyColumnsName);
     //CommonFuncCall.BindUnit(unit_id);
     dt_parts_brand = CommonFuncCall.BindDicDataSource("sys_parts_brand");
     LoadInfo(plan_id);
     GetAccessories(plan_id);
     //txtsuspend_reason.Enabled = chkis_suspend.Checked;
     gvPurchasePlanList.CellClick += new DataGridViewCellEventHandler(gvPurchasePlanList_CellClick);
 }