public void UpdateAppealAplicationTest() { IGRSS.BusinessLogicLayer.AppealApplication target = new IGRSS.BusinessLogicLayer.AppealApplication(); FormViewParameter Parameter = new FormViewParameter(); IGRSS.DataAccessLayer.Appeal.AppealApplicationDataTable dt = new IGRSS.DataAccessLayer.Appeal.AppealApplicationDataTable(); DataRow dr = dt.NewRow(); Guid AppealId = new Guid("2a0e5867-5da4-487f-824e-0272073bcf3b"); dr["AppealApplicationId"] = new Guid("2a0e5867-5da4-487f-824e-0272073bcf3b"); dr["AppealPrefix"] = "YSD"; dr["AppealSlNo"] = "22210"; dr["AppealYear"] = 2006; dr["OfficeId"] = new Guid("514ba1d5-61fb-4b9d-abfd-0dff857ca05d"); dr["RegistrationNo"] = "324444"; dr["ApplicantName"] = "BASKAR"; dr["Address"] = "Chennai"; dr["TypeOfAppeal"] = 2; dr["CalculatedAmount"] = 500; dr["DepositAmount"] = 200; dr["FeeReceiptNo"] = "467"; dr["Amount"] = "500"; dr["InwardDate"] = DateTime.Now; dr["IsPaidAppealFee"] = true; dr["AppealInTime"] = true; dr["PaperFromTo"] = "ssss"; dr["CourtFeeTicket"] = true; dr["AppealRemarks"] = "short listed"; dr["ModifiedBy"] = "sahu"; dr["ModifiedBy"] = DateTime.Now; dr["DocumentNo"] = "3333"; dr["OriginalSRO"] = new Guid("916fd082-061a-45fb-91a4-33967243b4cf"); dr["DocumentDate"] = DateTime.Now; dt.Rows.Add(dr); Parameter.Values = dt.Rows[0]; DataTable dtAct = new DataTable(); dtAct.Columns.Add("ActId", typeof(Guid)); dtAct.Columns.Add("Checked", typeof(bool)); DataRow actDR; actDR = dtAct.NewRow(); actDR["ActId"] = new Guid("eee9b625-be85-4715-920b-3ed6ec0f4470"); actDR["Checked"] = true; dtAct.Rows.Add(actDR); target.AddAppealAplication(Parameter, dtAct); bool expected = true; Guid AlertId = new Guid("bf1d42ed-7c1b-4878-8536-45270afba6df"); Assert.AreEqual(expected, target.UpdateAppealAplication(Parameter, dtAct, AppealId, AlertId, true), "IGRSS.BusinessLogicLayer.Leave.AddLeaveDetails did not return the expected value." + ""); }
public AppealTable GetAppealApplicationByApplicantName(string ApplicantName) { AppealTable Dt = new AppealTable(); try { Dt = IgrssAdapters.AppealAdapter.GetAppealApplicationByApplicantName(ApplicantName); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) { throw; } } return(Dt); }
public AppealTable GetHighCourtDetails(string FileNo, string CaseNo, string ApplicantName) { AppealTable Dt = new AppealTable(); try { Dt = IgrssAdapters.AppealAdapter.GetHighCourtDetails(FileNo, CaseNo, ApplicantName); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) { throw; } } return(Dt); }
public AppealTable GetAppealStatusByAppealNo(decimal AppealSlNo) { AppealTable Dt = new AppealTable(); try { Dt = IgrssAdapters.AppealAdapter.GetAppealStatusByAppealNo(AppealSlNo); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) { throw; } } return(Dt); }
/// <summary> /// This function will get all the appeal recods. /// <returns>AppealTable</returns> public AppealTable GetAllAppealApplication() { AppealTable Dt = new AppealTable(); try { Dt = IgrssAdapters.AppealAdapter.GetData(); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) { throw; } } return(Dt); }
public AppealTable GetAppealApplicationForHighCourt(string ApplicantName, string FileNo) { AppealTable dt = new AppealTable(); try { dt = IgrssAdapters.AppealAdapter.GetAppealApplicationForHighCourt(ApplicantName, FileNo); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) { throw; } } return(dt); }
public void AddAppealAplicationTest() { IGRSS.BusinessLogicLayer.AppealApplication target = new IGRSS.BusinessLogicLayer.AppealApplication(); FormViewParameter Parameter = new FormViewParameter(); IGRSS.DataAccessLayer.Appeal.AppealApplicationDataTable dt = new IGRSS.DataAccessLayer.Appeal.AppealApplicationDataTable(); DataRow dr = dt.NewRow(); dr["AppealApplicationId"] = new Guid(); dr["AppealPrefix"] = "YSL"; dr["AppealSlNo"]="22210"; dr["AppealYear"]=2006; dr["OfficeId"]=new Guid("514ba1d5-61fb-4b9d-abfd-0dff857ca05d"); dr["RegistrationNo"]="324444"; dr["ApplicantName"]="BASKAR"; dr["Address"]="Chennai"; dr["TypeOfAppeal"]=2; dr["CalculatedAmount"]=500; dr["DepositAmount"] = 200; dr["FeeReceiptNo"]="467"; dr["Amount"]="500"; dr["InwardDate"]=DateTime.Now; dr["IsPaidAppealFee"]=true; dr["AppealInTime"]=true; dr["PaperFromTo"]="ssss"; dr["CourtFeeTicket"]=true; dr["AppealRemarks"]="short listed"; dr["CreatedBy"] = "sahu"; dr["DocumentNo"]="3333"; dr["OriginalSRO"] = new Guid("916fd082-061a-45fb-91a4-33967243b4cf"); dr["DocumentDate"] = DateTime.Now; dt.Rows.Add(dr); Parameter.Values = dt.Rows[0]; DataTable dtAct = new DataTable(); dtAct.Columns.Add("ActId", typeof(Guid)); dtAct.Columns.Add("Checked", typeof(bool)); DataRow actDR; actDR = dtAct.NewRow(); actDR["ActId"] = new Guid("eee9b625-be85-4715-920b-3ed6ec0f4470"); actDR["Checked"] = true; dtAct.Rows.Add(actDR); target.AddAppealAplication(Parameter, dtAct); bool expected = true; Assert.AreEqual(expected,target.AddAppealAplication(Parameter, dtAct), "IGRSS.BusinessLogicLayer.Leave.AddLeaveDetails did not return the expected value." + ""); }
public AppealTable GetHighCourtDetails(string FileNo, string CaseNo, string ApplicantName) { AppealTable Dt = new AppealTable(); try { Dt = IgrssAdapters.AppealAdapter.GetHighCourtDetails(FileNo, CaseNo, ApplicantName); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) throw; } return Dt; }
public AppealTable GetAppealStatusByAppealNo(decimal AppealSlNo) { AppealTable Dt = new AppealTable(); try { Dt = IgrssAdapters.AppealAdapter.GetAppealStatusByAppealNo(AppealSlNo); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) throw; } return Dt; }
public AppealTable GetAppealApplicationForHighCourt(string ApplicantName, string FileNo) { AppealTable dt = new AppealTable(); try { dt = IgrssAdapters.AppealAdapter.GetAppealApplicationForHighCourt(ApplicantName, FileNo); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) throw; } return dt; }
public AppealTable GetAppealApplicationByApplicantName(string ApplicantName) { AppealTable Dt = new AppealTable(); try { Dt = IgrssAdapters.AppealAdapter.GetAppealApplicationByApplicantName(ApplicantName); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) throw; } return Dt; }
public AppealTable GetAppealApplicationByAppealID(Guid AppealApplicationId) { AppealTable Dt = new AppealTable(); try { Dt = IgrssAdapters.AppealAdapter.GetAppealApplicationByAppealApplicationID(AppealApplicationId); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) throw; } return Dt; }
/// <summary> /// This function will get all the appeal recods. /// <returns>AppealTable</returns> public AppealTable GetAllAppealApplication() { AppealTable Dt = new AppealTable(); try { Dt = IgrssAdapters.AppealAdapter.GetData(); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) throw; } return Dt; }