public void ShowCoorHistory(string inBranch, string inCoor)
 {
     using (dlgHisOpt1 dlg = new dlgHisOpt1())
     {
         dlg.ShowDialog();
         if (dlg.DialogResult == DialogResult.OK)
         {
             this.mstrBranchID  = inBranch;
             this.mstrCoor      = inCoor;
             this.mstrBegQcProd = dlg.BegQcProd;
             this.mstrEndQcProd = dlg.EndQcProd;
             this.mdttBegDate   = dlg.BegDate;
             this.mdttEndDate   = dlg.EndDate;
             this.pmQueryCoorHistory();
         }
     }
 }
 public void ShowProdHistory(string inBranch, string inProd)
 {
     if (this.mstrProd == inProd && MessageBox.Show("สินค้านี้เคยดูประวัติแล้ว\r\nต้องการประมวลผลใหม่หรือไม่ ?", "Application confirm message", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.No)
     {
         this.pmQueryProdHistory(false);
     }
     else
     {
         using (dlgHisOpt1 dlg = new dlgHisOpt1())
         {
             dlg.IsGetProd = false;
             dlg.ShowDialog();
             if (dlg.DialogResult == DialogResult.OK)
             {
                 this.mstrBranchID = inBranch;
                 this.mstrProd     = inProd;
                 this.mdttBegDate  = dlg.BegDate;
                 this.mdttEndDate  = dlg.EndDate;
                 this.pmQueryProdHistory(true);
             }
         }
     }
 }