private void BindGridWithFilter() { log4net.ILog logger = log4net.LogManager.GetLogger("File"); try { AdminBLL ws = new AdminBLL(); GetAlertData objReq = new GetAlertData(); string WhereClause = ReturnWhere(); if (!string.IsNullOrEmpty(txtAlertID.Text)) { objReq.Alert_ID = txtAlertID.Text; } if (!string.IsNullOrEmpty(ddlAlertType.Text)) { objReq.Alert_Type = ddlAlertType.Text; } if (!string.IsNullOrEmpty(WhereClause)) { objReq.WhereClause = WhereClause; } if (!string.IsNullOrEmpty(txtdatefrom.Text)) { if (string.IsNullOrEmpty(txtdateto.Text)) { objReq.Date_From = txtdatefrom.Text; } } if (!string.IsNullOrEmpty(txtdateto.Text)) { if (!string.IsNullOrEmpty(txtdatefrom.Text)) { objReq.Date_From = txtdatefrom.Text; objReq.Date_From = txtdateto.Text; } } GetAlertDataResponse ret = ws.GetAlertData(objReq); int pageSize = ContextKeys.GRID_PAGE_SIZE; gvLoctionTable.PageSize = pageSize; gvLoctionTable.DataSource = ret.Alert_ID; gvLoctionTable.DataBind(); } catch (Exception ex) { logger.Info(ex.Message); } }
public GetAlertDataResponse GetAlertData(GetAlertData objGetAlertDataRequest) { try { AdminDAL objAdminDAL = new AdminDAL(); GetAlertDataResponse ret = new GetAlertDataResponse(); List <AlertHandlingUser> lst = objAdminDAL.GetAlertData(objGetAlertDataRequest); ret.Alert_ID = lst; return(ret); } catch (Exception ex) { throw ex; } }
private void BindGridWithFilter() { log4net.ILog logger = log4net.LogManager.GetLogger("File"); try { AdminBLL ws = new AdminBLL(); GetAlertData objReq = new GetAlertData(); GetAlertDataResponse ret = ws.GetAlertData(objReq); gvLoctionTable.DataSource = ret.Alert_ID; gvLoctionTable.DataBind(); } catch (Exception ex) { logger.Info(ex.Message); } }
private void PopulatePageCntrls(String argsBGID) { Int32 iCount = 0; GetAlertDataResponse ret = null; log4net.ILog logger = log4net.LogManager.GetLogger("File"); try { AdminBLL objAdminBLL = new AdminBLL(); GetAlertData objGetBillingTableRequest = new GetAlertData(); objGetBillingTableRequest.NRIC_no = argsBGID.ToString(); objGetBillingTableRequest.WhereClause = " where NRIC_no='" + argsBGID.ToString() + "'"; ret = objAdminBLL.GetAlertData(objGetBillingTableRequest); hdnBTID.Value = ret.Alert[iCount].NRIC_no.ToString(); ddlRole.Text = ret.Alert[iCount].Alert_Type.ToString(); txtAddItemDesc.Text = ret.Alert[iCount].Name.ToString(); txtAddNRIC.Text = ret.Alert[iCount].NRIC_no.ToString(); txtAddCompany.Text = ret.Alert[iCount].Company.ToString(); txtAddVehicle.Text = ret.Alert[iCount].Vehicle_no.ToString(); txtmessage.Text = ret.Alert[iCount].Message.ToString(); txtname.Text = ret.Alert[iCount].Name1.ToString(); txtdesignation.Text = ret.Alert[iCount].Designation.ToString(); ddlRole0.Text = ret.Alert[iCount].Department.ToString(); txtphone.Text = ret.Alert[iCount].phone.ToString(); txtbynric.Text = ret.Alert[iCount].Bynricno.ToString(); } catch (Exception ex) { logger.Info(ex.Message); } }
private void PopulatePageCntrls(String argsBGID) { Int32 iCount = 0; GetAlertDataResponse ret = null; log4net.ILog logger = log4net.LogManager.GetLogger("File"); try { AdminBLL objAdminBLL = new AdminBLL(); GetAlertData objGetBillingTableRequest = new GetAlertData(); objGetBillingTableRequest.Alert_ID = argsBGID.ToString(); objGetBillingTableRequest.WhereClause = " where Alert_ID='" + argsBGID.ToString() + "'"; ret = objAdminBLL.GetAlertData(objGetBillingTableRequest); txtlocation.Text = getlocnamebyid(ret.Alert_ID[iCount].Location_id.ToString()); txtVehicleType.Text = ret.Alert_ID[iCount].V_Type.ToString(); txtVehicleRegNo.Text = ret.Alert_ID[iCount].V_ResgistNo.ToString(); txtVehicleReason.Text = ret.Alert_ID[iCount].Alert_Type.ToString(); txtVehicleownerNric.Text = ret.Alert_ID[iCount].V_OwnerNricNo.ToString(); txtVehicleownerName.Text = ret.Alert_ID[iCount].V_OwnerName.ToString(); // txtReason.Text = ret.Alert_ID[iCount].Alert_Type.ToString(); txtRaisedName.Text = ret.Alert_ID[iCount].AlertBy_Name.ToString(); txtRaisedNric.Text = ret.Alert_ID[iCount].AlertBy_NRICNo.ToString(); txtPhone.Text = ret.Alert_ID[iCount].AlertContNo.ToString(); // txtNationality.Text = ret.Alert_ID[iCount].P_Nationality.ToString(); txtdesignation.Text = ret.Alert_ID[iCount].AlertDesignation.ToString(); txtcomment.Text = ret.Alert_ID[iCount].Comment.ToString(); } catch (Exception ex) { logger.Info(ex.Message); } }
private void PopulatePageCntrls(String argsBGID) { Int32 iCount = 0; GetAlertDataResponse ret = null; log4net.ILog logger = log4net.LogManager.GetLogger("File"); try { AdminBLL objAdminBLL = new AdminBLL(); GetAlertData objGetBillingTableRequest = new GetAlertData(); objGetBillingTableRequest.Alert_ID = argsBGID.ToString(); objGetBillingTableRequest.WhereClause = " where Alert_ID='" + argsBGID.ToString() + "'"; ret = objAdminBLL.GetAlertData(objGetBillingTableRequest); hdnBTID.Value = ret.Alert_ID[iCount].Alert_ID.ToString(); ddllocation.Text = getlocnamebyid(ret.Alert_ID[iCount].Location_id.ToString()); txtAlertid.Text = ret.Alert_ID[iCount].Alert_ID.ToString(); ddlV_Type.Text = ret.Alert_ID[iCount].P_Name.ToString(); txtVehicleReg.Text = ret.Alert_ID[iCount].P_NRIC_no.ToString(); txtV_ONricNo.Text = ret.Alert_ID[iCount].P_Passport.ToString(); txtVOwerName.Text = ret.Alert_ID[iCount].P_Passport.ToString(); ddlAlertreason.Text = ret.Alert_ID[iCount].Alert_Type.ToString(); txtname.Text = ret.Alert_ID[iCount].AlertBy_Name.ToString(); txtbynric.Text = ret.Alert_ID[iCount].AlertBy_NRICNo.ToString(); txtphone.Text = ret.Alert_ID[iCount].AlertContNo.ToString(); ddlRole0.Text = ret.Alert_ID[iCount].AlertDepartment.ToString(); txtdesignation.Text = ret.Alert_ID[iCount].AlertDesignation.ToString(); txtmessage.Text = ret.Alert_ID[iCount].Comment.ToString(); } catch (Exception ex) { logger.Info(ex.Message); } }