コード例 #1
0
 public void Save()
 {
     if (!String.IsNullOrWhiteSpace(txtprintprogress.Text))
     {
         if (ErrorCheck())
         {
             if (InputErrorCheck())
             {
                 if (bbl.ShowMessage("Q201") == DialogResult.Yes)
                 {
                     var keys = string.Join("-", Array.ConvertAll <object, string>(dtreporttemp.Rows[0].ItemArray, Convert.ToString));
                     try
                     {
                         CR_regi.Youshi youshi = new CR_regi.Youshi(dtreporttemp, new string[] { InOperatorCD, InProgramID, InPcID, "PRINT", txtprintprogress.Text });
                         youshi.ShowDialog();
                     }
                     catch (Exception ex)
                     {
                         MessageBox.Show(ex.InnerException.Source + Environment.NewLine + ex.StackTrace + Environment.NewLine + ex.Message);
                     }
                 }
             }
         }
         else
         {
             bbl.ShowMessage("E138");
         }
         txtprintprogress.Focus();
     }
     else
     {
         bbl.ShowMessage("E102");
         txtprintprogress.Focus();
     }
 }
コード例 #2
0
 public void Save()
 {
     if (ErrorCheck())
     {
         if (bbl.ShowMessage("Q201") == DialogResult.Yes)
         {
             var keys = string.Join("-", Array.ConvertAll <object, string>(dtreporttemp.Rows[0].ItemArray, Convert.ToString));
             // var keys = dtreporttemp.Rows[0].ItemArray.ToString(); ;
             CR_regi.Youshi youshi = new CR_regi.Youshi(dtreporttemp, new string[] { InOperatorCD, InProgramID, InPcID, "Printed Mode", keys });
             youshi.ShowDialog();
             // Show Report
         }
     }
 }