private void AddNew() { m_state = "NEW"; objToolbar.Set_Button_Enable_Status(toolStrip1, false); objToolbar.SetToolBar();//重檢查按鈕的權限 SetObjValue.SetEditBackColor(tabPoPurchase.TabPages[0].Controls, true); SetObjValue.ClearObjValue(tabPoPurchase.TabPages[0].Controls, "2");//1 清空主檔,2全部 luestate.EditValue = "0"; txtID.Text = ""; clsTempReceipt.GetMaxNo(); //DataRow dr = dtArt_request.NewRow(); //插一空行 //dtArt_request.Rows.InsertAt(dr, 0); dtDetail.Clear(); bds_d.DataSource = dtDetail; gridControl1.DataSource = bds_d; tabPoPurchase.SelectedIndex = 0; }
public frmBsStockLocation() { InitializeComponent(); clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language); obj_ctl.Translate(); //權限 objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls); objToolbar.SetToolBar(); objToolbar.Set_Button_Image(toolStrip1); }
//private List<custom_delivry_details> lsModel = new List<custom_delivry_details>(); public frmDelivery() { InitializeComponent(); //權限 objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls); objToolbar.SetToolBar(); //str_language = DBUtility._language; //NextControl oNext = new NextControl(this, "2"); //oNext.EnterToTab(); }
public frmBsBrand() { InitializeComponent(); //翻譯 clsTranslate obj_ctl = new clsTranslate(this.Controls, mLanguage); obj_ctl.Translate(); //權限 objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls); objToolbar.SetToolBar(); objToolbar.Set_Button_Image(toolStrip1); }
private void SetButtonSatus(bool _flag) { btnNew.Enabled = _flag; btnEdit.Enabled = _flag; btnDelete.Enabled = _flag; btnSave.Enabled = !_flag; btnUndo.Enabled = !_flag; if (objToolbar != null) { objToolbar.SetToolBar(); } }
// ===============以下爲自定義方法======================= private void SetButtonSatus(bool _flag) { BTNNEW.Enabled = _flag; BTNEDIT.Enabled = _flag; BTNPRINT.Enabled = _flag; BTNDELETE.Enabled = _flag; BTNFIND.Enabled = _flag; BTNSAVE.Enabled = !_flag; BTNCANCEL.Enabled = !_flag; if (objToolbar != null) { objToolbar.SetToolBar(); } }
public frmMaterialType() { InitializeComponent(); mLanguage = DBUtility._language; //翻譯 clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language); obj_ctl.Translate(); //權限 objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls); objToolbar.SetToolBar(); objToolbar.Set_Button_Image(toolStrip1); }
public frmBsArtWork() { InitializeComponent(); str_language = DBUtility._language; //翻譯 clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language); obj_ctl.Translate(); //權限 objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls); objToolbar.SetToolBar(); objToolbar.Set_Button_Image(toolStrip1); mArtWorkPath = clsPub.GetArtWorkPath(); }
public frmTempReceiptQuery() { InitializeComponent(); NextControl obj = new NextControl(this, "1"); obj.EnterToTab(); clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language); obj_ctl.Translate(); //權限 objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls); objToolbar.SetToolBar(); objToolbar.Set_Button_Image(toolStrip1); //初始化查找條件 objPub.Initialize_find_value(this.Name, this.Controls); }
private void SetButtonSatus(bool _flag) //設置工具欄 { BTNNEW.Enabled = _flag; BTNEDIT.Enabled = _flag; BTNPRINT.Enabled = _flag; BTNDELETE.Enabled = _flag; grpbFind.Enabled = _flag; BTNSAVE.Enabled = !_flag; BTNCANCEL.Enabled = !_flag; BTNITEMADD.Enabled = !_flag; BTNITEMDEL.Enabled = !_flag; if (objToolbar != null) { objToolbar.SetToolBar(); } }
public frmCdCompany() { InitializeComponent(); clsTranslate obj_ctl = new clsTranslate(this.Controls, DBUtility._language); obj_ctl.Translate(); txtCreate_by.textBox.Tag = "1"; txtCreate_by.textBox.Enabled = false; txtCreate_date.textBox.Tag = "1"; txtCreate_date.textBox.Enabled = false; txtUpdate_by.textBox.Tag = "1"; txtUpdate_by.textBox.Enabled = false; txtUpdate_date.textBox.Tag = "1"; txtUpdate_date.textBox.Enabled = false; //權限 objToolbar = new clsToolBar(this.Tag.ToString(), this.Controls); objToolbar.SetToolBar(); objToolbar.Set_Button_Image(toolStrip1); }
// ===============以下爲自定義方法======================= private void SetButtonSatus(bool _flag) { BTNNEW.Enabled = _flag; BTNEDIT.Enabled = _flag; BTNPRINT.Enabled = _flag; BTNDELETE.Enabled = _flag; BTNFIND.Enabled = _flag; BTNSAVE.Enabled = !_flag; BTNCANCEL.Enabled = !_flag; btnItemAdd1.Enabled = !_flag; btnItemAdd2.Enabled = !_flag; btnItemDel1.Enabled = !_flag; btnItemDel2.Enabled = !_flag; gridView2.OptionsBehavior.Editable = !_flag; gridView1.OptionsBehavior.Editable = !_flag; if (objToolbar != null) { objToolbar.SetToolBar(); } }