Example #1
0
        private void btnDailyStatement_Click(object sender, EventArgs e)
        {
            int             modelType  = 2;
            FormSalesReport formReport = new FormSalesReport(modelType);

            formReport.ShowDialog();
            if (formReport.HandleSuccess)
            {
                needExist = true;
                this.Close();
            }
        }
Example #2
0
 private void btnShowDailyStatement_Click(object sender, EventArgs e)
 {
     if (dgvHandover.CurrentRow != null)
     {
         //查看交班记录
         int             index            = dgvHandover.CurrentRow.Index;
         int             modelType        = 1;
         object          handoverRecordID = dgvHandover.Rows[index].Cells["colHandoverRecordID"].Value;
         FormSalesReport formReport       = new FormSalesReport(modelType, handoverRecordID);
         formReport.ShowDialog();
     }
     else
     {
         if (dgvDailyStatement.CurrentRow != null)
         {
             //查看日结记录
             int             index            = dgvDailyStatement.CurrentRow.Index;
             int             modelType        = 2;
             object          dailyStatementNo = dgvDailyStatement.Rows[index].Cells["colDailyStatementNo"].Value;
             FormSalesReport formReport       = new FormSalesReport(modelType, dailyStatementNo);
             formReport.ShowDialog();
         }
     }
 }
 private void btnShowDailyStatement_Click(object sender, EventArgs e)
 {
     if (dgvHandover.CurrentRow != null)
     {
         //查看交班记录
         int index = dgvHandover.CurrentRow.Index;
         int modelType = 1;
         object handoverRecordID = dgvHandover.Rows[index].Cells["colHandoverRecordID"].Value;
         FormSalesReport formReport = new FormSalesReport(modelType, handoverRecordID);
         formReport.ShowDialog();
     }
     else
     {
         if (dgvDailyStatement.CurrentRow != null)
         {
             //查看日结记录
             int index = dgvDailyStatement.CurrentRow.Index;
             int modelType = 2;
             object dailyStatementNo = dgvDailyStatement.Rows[index].Cells["colDailyStatementNo"].Value;
             FormSalesReport formReport = new FormSalesReport(modelType, dailyStatementNo);
             formReport.ShowDialog();
         }
     }
 }
Example #4
0
 private void btnDailyStatement_Click(object sender, EventArgs e)
 {
     //1:交班 2:日结
     const int modelType = 2;
     FormSalesReport formReport = new FormSalesReport(modelType);
     formReport.ShowDialog();
     if (formReport.HandleSuccess)
     {
         this.Close();
         ConstantValuePool.DeskForm.Close();
     }
 }
 private void btnDailyStatement_Click(object sender, EventArgs e)
 {
     int modelType = 2;
     FormSalesReport formReport = new FormSalesReport(modelType);
     formReport.ShowDialog();
     if (formReport.HandleSuccess)
     {
         needExist = true;
         this.Close();
     }
 }