private void MenuPrintSaleDaily_Click(object sender, EventArgs e)
 {
     if (!DBConnString.clsDB.IsConnected()) return;
     Sale.rptSaleDay rpt = new KTCERP.Sale.rptSaleDay();
     rpt.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
     rpt.setSaleId = dptSaleDate.Value.ToString("dd/MM/yyyy");
     if (chkCutBranch.Checked)
     {
         rpt.CutvalueParameter = "0";
     }
     if (chkCutBranch2.Checked)
     {
         rpt.CutvalueParameter = "1";
     }
     rpt.ShowDialog();
 }
 private void btnReportSaleDay_Click(object sender, EventArgs e)
 {
     if (!DBConnString.clsDB.IsConnected()) return;
     Sale.rptSaleDay rpt = new KTCERP.Sale.rptSaleDay();
     rpt.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
     rpt.setSaleId = dptSaleDate.Value.ToString("dd/MM/yyyy");
     // rpt.setSaleId = Convert.ToDateTime(dptSaleDate.Value.ToString("dd/MM/yyyy HH:mm:ss"));
     rpt.ShowDialog();
     DataReceiveHead();
 }
Example #3
0
 private void btnReportSaleDay_Click(object sender, EventArgs e)
 {
     Sale.rptSaleDay rpt = new KTCERP.Sale.rptSaleDay();
     rpt.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
     rpt.setSaleId = dptSaleDate.Value.ToString("dd/MM/yyyy");
     rpt.ShowDialog();
 }