Ejemplo n.º 1
0
        private void GetSearchData(int pageidx)
        {
            SlmScr050Biz bz  = new SlmScr050Biz();
            var          lst = bz.GetDataForScreen(tdmIncFrom.DateValue, tdmIncTo.DateValue, tdmFrom.DateValue, tdmTo.DateValue, cmbTeamTelesale.SelectedValue, cmbTelsameName.SelectedValue, cmbStaffCategory.SelectedValue, cmbIncentiveFlat.SelectedValue);

            BindData(pgTop, pgBot, lst.ToArray(), pageidx);
        }
Ejemplo n.º 2
0
        protected void btnExcel3_Click(object sender, EventArgs e)
        {
            if (!CheckCondition())
            {
                return;
            }
            SlmScr050Biz bz       = new SlmScr050Biz();
            var          filename = Path.GetTempPath() + "tmpexcel_050_" + Page.User.Identity.Name + ".csv";// Path.GetTempFileName();

            if (bz.CreateExcel3V2(filename, tdmIncFrom.DateValue, tdmIncTo.DateValue, tdmFrom.DateValue, tdmTo.DateValue, cmbTeamTelesale.SelectedValue, cmbTelsameName.SelectedValue, cmbStaffCategory.SelectedValue, cmbIncentiveFlat.SelectedValue))
            {
                ExportExcel(filename, "สรุปรายการเบิกค่าน้ำมันเหมาจ่าย_" + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".csv");
            }
            else
            {
                AppUtil.ClientAlert(this, bz.ErrorMessage);
            }
        }
Ejemplo n.º 3
0
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     AppUtil.BuildCombo(cmbTeamTelesale, SlmScr032Biz.GetTeamSalesList(), "ทั้งหมด");
     AppUtil.BuildCombo(cmbIncentiveFlat, SlmScr050Biz.GetGradeDataList(), "ทั้งหมด");
 }