Пример #1
0
 protected void dataBind()
 {
     model = PageHelper.GetModel<SynclogModel>(pnlContent.Controls);
     string FromDate = txtFromDate.Text.Trim();
     string ToDate = txtToDate.Text.Trim();
     string condition = "";
     if (chkException.Checked)
     {
         condition += "1";
     }
     if (chkAction.Checked && !(chkException.Checked))
     {
         condition += "2";
     }
     else if (chkException.Checked && chkAction.Checked)
     {
         condition += ",2";
     }
     if (chkError.Checked && !(chkException.Checked) && !(chkAction.Checked))
     {
         condition += "3";
     }
     else if (chkError.Checked && chkAction.Checked||chkException.Checked && chkError.Checked)
     {
         condition += ",3";
     }
     DataTable dt = syncBll.SelectByString(model, condition, FromDate, ToDate, pager.CurrentPageIndex, pager.PageSize, out totalCount);
     pager.RecordCount = totalCount;
     UltraWebGridException.DataSource = dt;
     UltraWebGridException.DataBind();
     pager.TextAfterPageIndexBox = "/" + pager.PageCount.ToString();
 }
Пример #2
0
 private bool EnableAndDisableLeaveType(string LvTypeCode, string EffectFlag, SynclogModel logmodel)
 {
     LeaveTypeModel leaveTypeModel = new LeaveTypeModel();
     leaveTypeModel.LvTypeCode = LvTypeCode;
     leaveTypeModel.EffectFlag = EffectFlag;
     return leaveTypeBll.EnableAndDisableLeaveType(leaveTypeModel, logmodel);
 }