protected void Page_Load(object sender, EventArgs e) { //Getting the current Mode of the formView. if (FvAssignOfficer.CurrentMode == FormViewMode.ReadOnly) { //Creating the Instance of the IgrssGlobalConfigTableAdapter Object IgrssGlobalConfigTableAdapter ConfigAdapter = new IgrssGlobalConfigTableAdapter(); //Calling the BLL method and Storing result into XmlDataSource XmlComplainType.Data = (string)ConfigAdapter.GetConfigByModule("COM", "CompType"); //Binding the XmlDataSource XmlComplainType.DataBind(); } if (Request.Params["AlertId"] != null) { IgrssAlert Alert = WorkflowSupport.GetAlertById(new Guid(Request.Params["AlertId"])); fldComplainId.Value = Alert.SessionData["FileId"].ToString(); } }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { if (Request.Params["AlertId"] != null) { IgrssAlert alert = WorkflowSupport.GetAlertById(new Guid(Request.Params["AlertId"])); ViewState["AlertId"] = alert.AlertId; fldComplainId.Value = alert.SessionData["FileId"].ToString(); mvAssignOfficer.SetActiveView(mvAssignOfficer.Views[1]); } } if (FvInvestigationdetail.CurrentMode == FormViewMode.ReadOnly) { IgrssGlobalConfigTableAdapter ConfigAdapter = new IgrssGlobalConfigTableAdapter(); XmlComplainType.Data = (string)ConfigAdapter.GetConfigByModule("COM", "CompType"); XmlComplainType.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (Request.Params["AlertId"] != null) { IgrssAlert Alert = WorkflowSupport.GetAlertById(new Guid(Request.Params["AlertId"])); fldComplainId.Value = Alert.SessionData["FileId"].ToString(); } if (Request.Params["RedirID"] != null) { fldComplainId.Value = Request.Params["RedirID"].ToString(); mvComplain.SetActiveView(mvComplain.Views[2]); fvReadonly.ChangeMode(FormViewMode.ReadOnly); } switch (Request.Params["Mode"]) { case "DataEntry": mvComplain.SetActiveView(mvComplain.Views[1]); fvcomplain.ChangeMode(FormViewMode.Insert); break; case "Verify": mvComplain.SetActiveView(mvComplain.Views[0]); fvcomplain.ChangeMode(FormViewMode.Edit); break; } if (fvcomplain.CurrentMode == FormViewMode.Insert) { IgrssGlobalConfigTableAdapter ConfigAdapter = new IgrssGlobalConfigTableAdapter(); XmlComplainType.Data = (string)ConfigAdapter.GetConfigByModule("COM", "CompType"); XmlComplainType.DataBind(); } if (fvcomplain.CurrentMode == FormViewMode.Edit) { IgrssGlobalConfigTableAdapter ConfigAdapter = new IgrssGlobalConfigTableAdapter(); XmlComplainType.Data = (string)ConfigAdapter.GetConfigByModule("COM", "CompType"); XmlComplainType.DataBind(); } }