コード例 #1
0
ファイル: frmVehicle.cs プロジェクト: gsb123/ecustoms-project
        public frmVehicle(int mode, frmExport parrent, ref  List<VehicleInfo> vehicleInfosTemp, int count, tblDeclaration parrentDeclaration, UserInfo userInfo)
        {
            InitializeComponent();
            grdVehicle.AutoGenerateColumns = false;

            _mode = mode;
            _parrent = parrent;
            _vehicleInfosTemp = vehicleInfosTemp;
            _count = count;
            _parrentDeclaration = parrentDeclaration;
            _userInfo = userInfo;
            //InitialPermission();
        }
コード例 #2
0
 private void toolStripButtonDeclarace_Click(object sender, EventArgs e)
 {
     var frmExport = new frmExport(_userInfo, 0, this);
     frmExport.MdiParent = this;
     frmExport.Show();
 }
コード例 #3
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     var frmExport = new frmExport(_userInfo, 0, this);
     frmExport.MdiParent = this;
     frmExport.Show();
 }
コード例 #4
0
 private void grvDecleration_CellMouseDoubleClick_1(object sender, DataGridViewCellMouseEventArgs e)
 {
     try
     {
         if (e.RowIndex >= 0 && grvDecleration.SelectedRows.Count == 1) // Only select one row
         {
             frmExport frmExport = new frmExport(_userInfo, 1, Convert.ToInt32(grvDecleration.SelectedRows[0].Cells[0].Value));
             frmExport.MdiParent = _parrent;
             frmExport.Show();
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex.ToString());
         if (GlobalInfo.IsDebug) MessageBox.Show(ex.ToString());
     }
 }
コード例 #5
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     try
     {
         if (grvDecleration.SelectedRows.Count != 0)
         {
             frmExport frmExport = new frmExport(_userInfo, 1, Convert.ToInt32(grvDecleration.SelectedRows[0].Cells[0].Value));
             frmExport.MdiParent = _parrent;
             frmExport.Show();
         }
         else
         {
             MessageBox.Show("Bạn cần chọn 1 tờ khai cần cập nhật.");
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex.ToString());
         if (GlobalInfo.IsDebug) MessageBox.Show(ex.ToString());
     }
 }
コード例 #6
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     var frmExport = new frmExport(_userInfo, 0, this);
     frmExport.MdiParent = _parrent;
     frmExport.Show();
 }