예제 #1
0
        private void btnAddNew_Click(object sender, System.EventArgs e)
        {
            frmPosition frm = new frmPosition();

            frm.PositionDataSet = dsPosition;
            frm.ShowDialog(this);
            PopulatePositionListView();
            selectedRowIndex = -1;
            tableModel1.Selections.Clear();
        }
예제 #2
0
 private void lvwPosition_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left && e.Clicks == 2)
     {
         if (lvwPosition.SelectedItems.Length > 0)
         {
             frmPosition frm = new frmPosition();
             frm.PositionDataSet  = dsPosition;
             frm.SelectedPosition = selectedRowIndex;
             frm.ShowDialog(this);
             PopulatePositionListView();
         }
         selectedRowIndex = -1;
         tableModel1.Selections.Clear();
     }
 }
예제 #3
0
 /// <summary>
 /// Cap nhat thong tin chuc vu
 /// </summary>
 private void updatePosition()
 {
     if (selectedRowIndex < 0)
     {
         string str  = WorkingContext.LangManager.GetString("frmPosition_UpDate_Error_Messa");
         string str1 = WorkingContext.LangManager.GetString("frmPosition_UpDate_Error_Title");
         //MessageBox.Show("Bạn chưa chọn chức vụ nào", "Thông báo" ,MessageBoxButtons.OK,MessageBoxIcon.Error);
         MessageBox.Show(str, str1, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         frmPosition frm = new frmPosition();
         frm.PositionDataSet  = dsPosition;
         frm.SelectedPosition = selectedRowIndex;
         frm.ShowDialog(this);
         PopulatePositionListView();
     }
     selectedRowIndex = -1;
     tableModel1.Selections.Clear();
 }
예제 #4
0
 /// <summary>
 /// Cap nhat thong tin chuc vu
 /// </summary>
 private void updatePosition()
 {
     if (selectedRowIndex < 0)
     {
         string str = WorkingContext.LangManager.GetString("frmPosition_UpDate_Error_Messa");
         string str1 = WorkingContext.LangManager.GetString("frmPosition_UpDate_Error_Title");
         //MessageBox.Show("Bạn chưa chọn chức vụ nào", "Thông báo" ,MessageBoxButtons.OK,MessageBoxIcon.Error);
         MessageBox.Show(str, str1, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         frmPosition frm = new frmPosition();
         frm.PositionDataSet = dsPosition;
         frm.SelectedPosition = selectedRowIndex;
         frm.ShowDialog(this);
         PopulatePositionListView();
     }
     selectedRowIndex = -1;
     tableModel1.Selections.Clear();
 }
예제 #5
0
 private void lvwPosition_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left && e.Clicks == 2)
     {
         if (lvwPosition.SelectedItems.Length > 0)
         {
             frmPosition frm = new frmPosition();
             frm.PositionDataSet = dsPosition;
             frm.SelectedPosition = selectedRowIndex;
             frm.ShowDialog(this);
             PopulatePositionListView();
         }
         selectedRowIndex = -1;
         tableModel1.Selections.Clear();
     }
 }
예제 #6
0
 private void btnAddNew_Click(object sender, System.EventArgs e)
 {
     frmPosition frm = new frmPosition();
     frm.PositionDataSet = dsPosition;
     frm.ShowDialog(this);
     PopulatePositionListView();
     selectedRowIndex = -1;
     tableModel1.Selections.Clear();
 }