示例#1
0
 private void btnSaveAs_Click(object sender, EventArgs e)
 {
     try
     {
         if (gvDimensions.RowCount == 0)
         {
             return;
         }
         if (_IsSaveDimension)
         {
             throw new Exception("Bitte speichern Sie die Maße");
         }
         frmSaveDimension Obj = new frmSaveDimension("Dimension", "");
         Obj.ObjEArticle = ObjEArticle;
         Obj.ObjBArticle = ObjBArticle;
         Obj.strArticle  = "Info's zur Aktuellen Abmessung : " + txtWG.Text + "/" + txtWA.Text + "/" + txtWI.Text;
         Obj.ShowDialog();
         ObjEArticle = Obj.ObjEArticle;
         ObjBArticle = Obj.ObjBArticle;
         BindDimensions(ObjEArticle.WIID);
         gvWI_FocusedRowChanged(null, null);
     }
     catch (Exception ex)
     {
         Utility.ShowError(ex);
     }
 }
示例#2
0
 private void btnValidityDate_Click(object sender, EventArgs e)
 {
     try
     {
         frmAddType frm = new frmAddType(_WIIDValue, "ValidityDate");
         frm.ShowDialog();
         if (frm.Date != null)
         {
             frm.Hide();
             frmSaveDimension Objfrm = new frmSaveDimension("ValidityDate", frm.Date, _WIIDValue);
             Objfrm.ObjEArticle = ObjEArticle;
             Objfrm.ShowDialog();
             frm.Close();
             BindDimensions(ObjEArticle.WIID);
             gvWI_FocusedRowChanged(null, null);
         }
     }
     catch (Exception ex)
     {
         Utility.ShowError(ex);
     }
 }