Esempio n. 1
0
 private void ExecDisp()
 {
     if (dt.Rows.Count > 0)
     {
         decimal kin = 0;
         foreach (DataRow row in dt.Rows)
         {
             kin += mibl.Z_Set(row["CollectAmount"]);
         }
         label1.Text                   = mibl.Z_SetStr(kin);
         dgvDetail.SelectionMode       = DataGridViewSelectionMode.RowHeaderSelect;
         dgvDetail.CurrentRow.Selected = true;
         dgvDetail.Enabled             = true;
         dgvDetail.Focus();
         dgvDetail.Select();
     }
     else
     {
         mibl.ShowMessage("E128");
         this.Close();
     }
 }
Esempio n. 2
0
 protected override void ExecSec()
 {
     try
     {
         //詳細画面を起動します
         FrmDetail frm = new FrmDetail();
         doe.CollectPlanNO = GvDetail.CurrentRow.Cells["CollectPlanNO"].Value.ToString();
         frm.dt            = mibl.D_CollectPlan_SelectAllForSyosai(doe);
         if (frm.dt.Rows.Count > 0)
         {
             frm.ShowDialog();
         }
         else
         {
             mibl.ShowMessage("E128");
         }
     }
     catch (Exception ex)
     {
         //エラー時共通処理
         MessageBox.Show(ex.Message);
         //EndSec();
     }
 }