예제 #1
0
        public void GetValuationFormDetailsByValuationFormIdTest()
        {
            IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
            Guid ValuationFormId = new Guid("a070f78d-9bfe-4804-8036-181acf5f1183"); // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetValuationFormDetailsByValuationFormId(ValuationFormId), typeof(IGRSS.DataAccessLayer.Adjudication.ValuationFormDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
                                    "eturn the expected value.");
        }
예제 #2
0
        public void GetValuationSheetDetailsByAdjIdTest()
        {
            IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
            Guid AdjudicationId = new Guid("074a3ee7-97a4-4d61-95ae-0a902c6bab28"); // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetValuationSheetDetailsByAdjId(AdjudicationId), typeof(IGRSS.DataAccessLayer.Adjudication.ValuationSheetDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
                                    "eturn the expected value.");
        }
예제 #3
0
        public void GetValuationFormByAdjudicationIdTest()
        {
            IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
            Guid AdjudicationId = new Guid("984a2aa9-e8ac-47be-869b-19a2b66471c9"); // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetValuationFormByAdjudicationId(AdjudicationId), typeof(IGRSS.DataAccessLayer.Adjudication.ValuationFormDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
                                    "eturn the expected value.");
        }
예제 #4
0
        public void GetDocumentDetailsByIdTest()
        {
            IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
            Guid DocumentTypeId = new Guid("e90627b7-b333-425d-a151-762494fe637c"); // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetDocumentDetailsById(DocumentTypeId), typeof(IGRSS.DataAccessLayer.Adjudication.DocumentMasterDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
                                    "eturn the expected value.");
        }
예제 #5
0
        public void GetFeeDetailsByIdTest()
        {
            IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
            Guid FeeId = new Guid("a9be2b1b-b197-4952-b98e-5216d5d1d1a8"); // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetFeeDetailsById(FeeId), typeof(IGRSS.DataAccessLayer.Adjudication.FeeMasterDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
                                    "eturn the expected value.");
        }
예제 #6
0
        public void GetDocumentByValuationFormIdTest()
        {
            IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
            Guid ValuationFormId = new Guid("3e985ff0-4cd0-47e6-94da-434541de1948"); // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetDocumentByValuationFormId(ValuationFormId), typeof(IGRSS.DataAccessLayer.Adjudication.DocumentChecklistTableDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
                                    "eturn the expected value.");
        }
예제 #7
0
        public void GetAdjudicationRequestByIdTest()
        {
            IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
            Guid AdjudicationId = new Guid("db79200a-7e5f-414e-b3cd-2cf7f34cfce5"); // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetAdjudicationRequestById(AdjudicationId), typeof(IGRSS.DataAccessLayer.Adjudication.AdjudicationRequestDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
                                    "eturn the expected value.");
        }
예제 #8
0
        public void GetValuationFormDetailsTest()
        {
            IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
            Guid AdjudicationId = new Guid("8cc0268e-5bbd-4244-8e89-5c105bb4be7a"); // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetValuationFormDetails(AdjudicationId), typeof(IGRSS.DataAccessLayer.Adjudication.ValuationFormDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
                                    "eturn the expected value.");
        }
예제 #9
0
    protected void AddDocumentDetails_Click(object sender, EventArgs e)
    {
        string Mode = "Ins";
        Guid ValuationFormId = Guid.Empty;
        if (null == ViewState["DocDetails"])
        {
            ViewState["DocDetails"] = new AdjudicationRequest().GetDocumentByValuationFormId(Guid.Empty);
            ValuationFormId = Guid.Empty;
        }
        if (fvValuationForm.CurrentMode == FormViewMode.Edit)
        {
            //TODO: Replace the Data Key Name here.
            ValuationFormId = (Guid)fvValuationForm.DataKey["ValuationFormId"];
            Mode = "Upd";
        }

        GridView gvDocDetails = ((GridView)fvValuationForm.FindControl("gvDocument" + Mode));
        DataTable dtDocDetails = (DataTable)ViewState["DocDetails"];
        DropDownList ddlDoc = ((DropDownList)fvValuationForm.FindControl("ddlDocumentType" + Mode));
        TextBox txtDocNumber = ((TextBox)fvValuationForm.FindControl("txtDocumentNumber" + Mode));
        TextBox txtDocRemarks = ((TextBox)fvValuationForm.FindControl("txtDocRemarks" + Mode));
        CheckBox chkSubmitted = ((CheckBox)fvValuationForm.FindControl("chkSubmitted" + Mode));
        object[] keys = { ValuationFormId, new Guid(ddlDoc.SelectedValue) };
        DataRow dr = dtDocDetails.Rows.Find(keys);

        if (null == dr)
        {
            dr = dtDocDetails.NewRow();
            dr["ValuationFormId"] = ValuationFormId;
            dr["DocumentTypeId"] = new Guid(ddlDoc.SelectedValue);
            dr["DocName"] = ddlDoc.SelectedItem.Text;
            dr["DocumentNumber"] = txtDocNumber.Text;
            dr["Remarks"] = txtDocRemarks.Text;
            dr["Submitted"] = chkSubmitted.Checked;
            dtDocDetails.Rows.Add(dr);
            ddlDoc.SelectedIndex = -1;
        }

        ((Button)fvValuationForm.FindControl("btnAddDocument" + Mode)).Visible = true;
        ((Button)fvValuationForm.FindControl("btnUpdateFeeDetails" + Mode)).Visible = false;

        ViewState["DocDetails"] = dtDocDetails;
        gvDocDetails.DataSource = (DataTable)ViewState["DocDetails"];
        gvDocDetails.DataBind();
        txtDocNumber.Text = "";
        txtDocRemarks.Text = "";
        chkSubmitted.Checked = false;
    }
예제 #10
0
    protected void AddFeeDetails_Click(object sender, EventArgs e)
    {
        string Mode = "Ins";
        Guid AdjudicationId = Guid.Empty;
        if (null == ViewState["FeeDetails"])
        {
            ViewState["FeeDetails"] = new AdjudicationRequest().GetAdjFeesDetailByAdjId(Guid.Empty);
            AdjudicationId = Guid.Empty;
        }
        if (fvValuationForm.CurrentMode == FormViewMode.Edit)
        {
            //TODO: Replace the Data Key Name here.
            AdjudicationId = (Guid)fvValuationForm.DataKey["AdjudicationId"];

            Mode = "Upd";
        }
        GridView gvFeeStampDetails = ((GridView)fvValuationForm.FindControl("gvFeeStampDetails" + Mode));
        DataTable dtFeesDetails = (DataTable)ViewState["FeeDetails"];
        DropDownList ddlFees = ((DropDownList)fvValuationForm.FindControl("ddlFeeType" + Mode));
        TextBox txtAmount = ((TextBox)fvValuationForm.FindControl("txtFeeAmount" + Mode));
        object[] keys = { AdjudicationId, new Guid(ddlFees.SelectedValue) };
        DataRow dr = dtFeesDetails.Rows.Find(keys);
        if (null == dr)
        {
            dr = dtFeesDetails.NewRow();
            dr["AdjudicationId"] = AdjudicationId;
            dr["FeeId"] = new Guid(ddlFees.SelectedValue);
            dr["FeeName"] = ddlFees.SelectedItem.Text;
            dr["Amount"] = txtAmount.Text;
            dtFeesDetails.Rows.Add(dr);
            ddlFees.SelectedIndex = -1;
            txtAmount.Text = "";
        }
        ((Button)fvValuationForm.FindControl("btnAddFeeDetail" + Mode)).Visible = true;
        ((Button)fvValuationForm.FindControl("btnUpdateFeeDetail" + Mode)).Visible = false;
        ViewState["FeeDetails"] = dtFeesDetails;
        gvFeeStampDetails.DataSource = (DataTable)ViewState["FeeDetails"];
        gvFeeStampDetails.DataBind();
    }
예제 #11
0
 public void GetValuationSheetDetailsByAdjIdTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Guid AdjudicationId = new Guid("074a3ee7-97a4-4d61-95ae-0a902c6bab28"); // TODO: Initialize to an appropriate value
     Assert.IsInstanceOfType(target.GetValuationSheetDetailsByAdjId(AdjudicationId),typeof(IGRSS.DataAccessLayer.Adjudication.ValuationSheetDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
           "eturn the expected value.");
 }
예제 #12
0
 public void GetValuationFormDetailsByValuationFormIdTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Guid ValuationFormId = new Guid("a070f78d-9bfe-4804-8036-181acf5f1183"); // TODO: Initialize to an appropriate value
     Assert.IsInstanceOfType(target.GetValuationFormDetailsByValuationFormId(ValuationFormId), typeof(IGRSS.DataAccessLayer.Adjudication.ValuationFormDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
           "eturn the expected value.");
 }
예제 #13
0
 public void GetFeeDetailsByIdTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Guid FeeId = new Guid("a9be2b1b-b197-4952-b98e-5216d5d1d1a8"); // TODO: Initialize to an appropriate value
     Assert.IsInstanceOfType(target.GetFeeDetailsById(FeeId), typeof(IGRSS.DataAccessLayer.Adjudication.FeeMasterDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
           "eturn the expected value.");
 }
예제 #14
0
 public void GetAdjudicationTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Assert.IsInstanceOfType(target.GetAdjudication(), typeof(IGRSS.DataAccessLayer.Adjudication.AdjudicationRequestDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjFeesDetailByAdjId did not retu" +
                             "rn the expected value.");
 }
예제 #15
0
 public void GetAdJRequestByFileNoTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     decimal FileSlNo = 77; // TODO: Initialize to an appropriate value
       //  Assert.IsInstanceOfType(target.GetAdJRequestByFileNo(FileSlNo),typeof(IGRSS.DataAccessLayer.Adjudication.AdjudicationRequestDataTable),"IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjFeesDetailByAdjId did not retu" +   "rn the expected value.");
 }
예제 #16
0
    protected void fvStampDutyCalculation_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
    {
        CheckBox ChkPhysicalVerification = (CheckBox) fvStampDutyCalculation.FindControl("chkPhysicalVerification");
        bool PvRequired = ChkPhysicalVerification.Checked;
        if (!PvRequired)
        {
            mvStampDutyCalculation.SetActiveView(mvStampDutyCalculation.Views[2]);
            fldAdjudicationId.Value = fvStampDutyCalculation.SelectedValue.ToString();
            fvIssuecertificate.DataBind();

            //FormView1.DataBind();
        }
        else
        {
            GridView GvAdjudicationRequest = ((GridView) mvStampDutyCalculation.FindControl("GvAdjudicationRequest"));
            Guid AdjudicationId = (Guid) GvAdjudicationRequest.SelectedDataKey.Value;
            mvStampDutyCalculation.SetActiveView(mvStampDutyCalculation.Views[0]);
            AdjudicationRequest objAdjudicationRequest = new AdjudicationRequest();
            objAdjudicationRequest.UpdatePhysicalVerification(AdjudicationId);
        }
    }
예제 #17
0
 public void GetDocumentMasterTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Assert.IsInstanceOfType(target.GetDocumentMaster(), typeof(IGRSS.DataAccessLayer.Adjudication.DocumentMasterDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
                             "eturn the expected value.");
 }
예제 #18
0
    protected void btnIssueCertificate_Click1(object sender, EventArgs e)
    {
        GridView GvAdjudicationRequest = ((GridView) mvStampDutyCalculation.FindControl("GvAdjudicationRequest"));
        Guid AdjudicationId = (Guid) GvAdjudicationRequest.SelectedDataKey.Value;

        TextBox txtCertificateNumber = (TextBox) fvIssuecertificate.FindControl("txtCertificateNumber");

        TextBox txtCertificateIssuedOn = (TextBox) fvIssuecertificate.FindControl("txtCertificateIssuedOn");

        TextBox txtCertificateRemarks = (TextBox) fvIssuecertificate.FindControl("txtCertificateRemarks");
        AdjudicationRequest objAdjudicationRequest = new AdjudicationRequest();
        objAdjudicationRequest.IssueCertificate(AdjudicationId,txtCertificateNumber.Text, Convert.ToDateTime(txtCertificateIssuedOn.Text), txtCertificateRemarks.Text);
    }
예제 #19
0
 public void GetAdjudicationTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Assert.IsInstanceOfType(target.GetAdjudication(),typeof(IGRSS.DataAccessLayer.Adjudication.AdjudicationRequestDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjFeesDetailByAdjId did not retu" +
             "rn the expected value.");
 }
예제 #20
0
    protected void btnIssueCertificate_Click(object sender, EventArgs e)
    {
        TextBox txtCertificateNumber = (TextBox) fvIssuecertificate.FindControl("txtCertificateNumber");
        TextBox txtValuationDate = (TextBox) fvIssuecertificate.FindControl("txtCertificateIssuedOn");
        TextBox txtCertificateDescription = (TextBox) fvIssuecertificate.FindControl("txtCertificateDescription");
        TextBox txtCertificateRemarks = (TextBox) fvIssuecertificate.FindControl("txtCertificateRemarks");
        AdjudicationRequest objAdjRequest = new AdjudicationRequest();

        Guid AdjudicationId = new Guid("6221631a-fbc0-4d1f-ae68-016b8798e8c0");
        objAdjRequest.IssueCertificate(AdjudicationId, txtCertificateNumber.Text, Convert.ToDateTime(txtValuationDate), txtCertificateDescription.Text);
        //objAdjRequest.AddNewValuationSheetDetails(
        //mvStampDutyCalculation.SetActiveView(mvStampDutyCalculation.Views[1]);

        //fvValuationResult.ChangeMode(FormViewMode.Insert);

        //ValuationResult Result = new ValuationResult();
        //Result = (ValuationResult) ViewState["Result"];
        //TextBox txtReceiveDate = (TextBox) fvValuationResult.FindControl("txtReceivedDate");
        //TextBox txtValuationDate = (TextBox) fvValuationResult.FindControl("txtValuationDate");
        //TextBox txtAreaOfPlot = (TextBox) fvValuationResult.FindControl("txtAreaOfPlot");
        //TextBox txtAreaOfConstruction = (TextBox) fvValuationResult.FindControl("txtAreaOfConstruction");
        //TextBox txtRateOfConstruction = (TextBox) fvValuationResult.FindControl("txtRateOfConstruction");
        //TextBox txtEstimatedValue = (TextBox) fvValuationResult.FindControl("txtEstimatedValue");
        //TextBox txtInternalElectrification = (TextBox) fvValuationResult.FindControl("txtInternalElectrification");
        //TextBox txtDevelopmentalExpense = (TextBox) fvValuationResult.FindControl("txtDevelopmentalExpense");
        //TextBox txtSupervisionExpense = (TextBox) fvValuationResult.FindControl("txtSupervisionExpense");
        //TextBox txtLiftExpenses = (TextBox) fvValuationResult.FindControl("txtLiftExpenses");
        //TextBox txtTotalConstructionExpense = (TextBox) fvValuationResult.FindControl("txtTotalConstructionExpense");
        //TextBox txtLifeSpanOfStructure = (TextBox) fvValuationResult.FindControl("txtLifeSpanOfStructure");
        //TextBox txtYearOfConstruction = (TextBox) fvValuationResult.FindControl("txtYearOfConstruction");
        //TextBox txtDepreciationValue = (TextBox) fvValuationResult.FindControl("txtDepreciationValue");
        //TextBox txtNettValue = (TextBox) fvValuationResult.FindControl("txtNettValue");
        //TextBox txtDeductions = (TextBox) fvValuationResult.FindControl("txtDeductions");

        //TextBox txtLandValue = (TextBox) fvValuationResult.FindControl("txtLandValue");
        //TextBox txtStampDuty = (TextBox) fvValuationResult.FindControl("txtStampDuty");
        //TextBox txtRemarks = (TextBox) fvValuationResult.FindControl("txtRemarks");

        //txtAreaOfPlot.Text = Convert.ToDecimal(Result.AreaOfLand).ToString();
        //txtAreaOfConstruction.Text = Convert.ToDecimal(Result.PlinthAreaOfConstruction).ToString();
        //txtRateOfConstruction.Text = Convert.ToDecimal(Result.ConstructionExpense).ToString();
        //txtEstimatedValue.Text = Convert.ToDecimal(Result.EstimatedPrice).ToString();
        //txtInternalElectrification.Text = Convert.ToDecimal(Result.InternalElectrificationExpense).ToString();
        //txtDevelopmentalExpense.Text = Convert.ToDecimal(Result.DevelopmentExpense).ToString();
        ////  txtSupervisionExpense.Text=Result.
        //txtLiftExpenses.Text = Convert.ToDecimal(Result.LiftExpense).ToString();
        //txtTotalConstructionExpense.Text = Convert.ToDecimal(Result.EstimatedPriceOfConstruction).ToString();
        //txtLifeSpanOfStructure.Text = Convert.ToDecimal(Result.LifeOfConstruction).ToString();
        //txtYearOfConstruction.Text = Convert.ToInt32(Result.YearOfConstruction).ToString();
        //txtDepreciationValue.Text = Convert.ToDecimal(Result.Depreciation).ToString();

        //txtDeductions.Text = Convert.ToDecimal(Result.SpecialDeduction).ToString();
        //txtNettValue.Text = Convert.ToDecimal(Result.ValuationOfProperty).ToString();
        //txtLandValue.Text = Convert.ToDecimal(Result.NetPrice).ToString();
        ////	txtStampDuty.Text = Convert.ToDecimal(Result.SToString();

        //txtRemarks.Text = Result.Remarks;
    }
예제 #21
0
 public void GetDocumentDetailsByIdTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Guid DocumentTypeId = new Guid("e90627b7-b333-425d-a151-762494fe637c"); // TODO: Initialize to an appropriate value
     Assert.IsInstanceOfType(target.GetDocumentDetailsById(DocumentTypeId), typeof(IGRSS.DataAccessLayer.Adjudication.DocumentMasterDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
             "eturn the expected value.");
 }
예제 #22
0
 public void GetAdjudicationRequestByIdTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Guid AdjudicationId = new Guid("db79200a-7e5f-414e-b3cd-2cf7f34cfce5"); // TODO: Initialize to an appropriate value
     Assert.IsInstanceOfType(target.GetAdjudicationRequestById(AdjudicationId), typeof(IGRSS.DataAccessLayer.Adjudication.AdjudicationRequestDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
             "eturn the expected value.");
 }
예제 #23
0
 public void GetAdJRequestByFileNoTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     decimal FileSlNo = 77; // TODO: Initialize to an appropriate value
     //  Assert.IsInstanceOfType(target.GetAdJRequestByFileNo(FileSlNo),typeof(IGRSS.DataAccessLayer.Adjudication.AdjudicationRequestDataTable),"IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjFeesDetailByAdjId did not retu" +   "rn the expected value.");
 }
예제 #24
0
 public void GetDocumentByValuationFormIdTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Guid ValuationFormId = new Guid("3e985ff0-4cd0-47e6-94da-434541de1948"); // TODO: Initialize to an appropriate value
     Assert.IsInstanceOfType(target.GetDocumentByValuationFormId(ValuationFormId), typeof(IGRSS.DataAccessLayer.Adjudication.DocumentChecklistTableDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
             "eturn the expected value.");
 }
예제 #25
0
 public void ValuationFormDetailsTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Assert.IsInstanceOfType(target.ValuationFormDetails(), typeof(IGRSS.DataAccessLayer.Adjudication.ValuationFormDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
                             "eturn the expected value.");
 }
예제 #26
0
 public void GetDocumentMasterTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Assert.IsInstanceOfType(target.GetDocumentMaster(), typeof(IGRSS.DataAccessLayer.Adjudication.DocumentMasterDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
            "eturn the expected value.");
 }
예제 #27
0
    protected void DocDetailsGrid_SelectedIndexChanged(object sender, EventArgs e)
    {
        string Mode = "Ins";
        Guid ValuationFormId = Guid.Empty;
        if (null == ViewState["DocDetails"])
        {
            ViewState["DocDetails"] = new AdjudicationRequest().GetDocumentByValuationFormId(Guid.Empty);
            ValuationFormId = Guid.Empty;
        }
        if (fvValuationForm.CurrentMode == FormViewMode.Edit)
        {
            //TODO: Replace the Data Key Name here.
            ValuationFormId = (Guid)fvValuationForm.DataKey["ValuationFormId"];
            Mode = "Upd";
        }

        GridView gv = (GridView)sender;
        DataTable dt = (DataTable)ViewState["DocDetails"];
        GridView gvDocDetails = ((GridView)fvValuationForm.FindControl("gvDocumentIns" + Mode));
        DropDownList ddlDoc = ((DropDownList)fvValuationForm.FindControl("ddlDocumentType" + Mode));
        TextBox txtDocNumber = ((TextBox)fvValuationForm.FindControl("txtDocumentNumber" + Mode));
        TextBox txtDocRemarks = ((TextBox)fvValuationForm.FindControl("txtDocRemarks" + Mode));
        CheckBox chkSubmitted = ((CheckBox)fvValuationForm.FindControl("chkSubmitted" + Mode));
        object[] keys = new object[gv.SelectedDataKey.Values.Count];
        for (int i = 0; i < keys.Length; i++)
        {
            keys[i] = gv.SelectedDataKey.Values[i];
        }
        DataRow dr = dt.Rows.Find(keys);

        if (null != dr)
        {

            ddlDoc.SelectedValue = Convert.ToString(dr["DocumentTypeId"]);
            txtDocNumber.Text = (string)dr["DocumentNumber"];
            txtDocRemarks.Text = (string)dr["Remarks"];
            chkSubmitted.Checked = (bool)dr["Submitted"];

        }

        ((Button)fvValuationForm.FindControl("btnAddDocument" + Mode)).Visible = false;
        ((Button)fvValuationForm.FindControl("btnUpdateFeeDetails" + Mode)).Visible = true;
    }
예제 #28
0
 public void GetValuationFormByAdjudicationIdTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Guid AdjudicationId = new Guid("984a2aa9-e8ac-47be-869b-19a2b66471c9"); // TODO: Initialize to an appropriate value
     Assert.IsInstanceOfType(target.GetValuationFormByAdjudicationId(AdjudicationId), typeof(IGRSS.DataAccessLayer.Adjudication.ValuationFormDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
           "eturn the expected value.");
 }
예제 #29
0
 protected void DocDetails_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     Guid ValuationFormId = Guid.Empty;
     if (null == ViewState["DocDetails"])
     {
         ViewState["DocDetails"] = new AdjudicationRequest().GetDocumentByValuationFormId(Guid.Empty);
         ValuationFormId = Guid.Empty;
     }
     if (fvValuationForm.CurrentMode == FormViewMode.Edit)
     {
         ValuationFormId = (Guid)fvValuationForm.DataKey["ValuationFormId"];
     }
     GridView gv = (GridView)sender;
     DataTable dt = (DataTable)ViewState["DocDetails"];
     int i = e.RowIndex;
     dt.Rows[i].Delete();
     dt.AcceptChanges();
     ViewState["DocDetails"] = dt;
     gv.DataSource = ViewState["DocDetails"];
     gv.DataBind();
 }
예제 #30
0
 public void GetValuationFormDetailsTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Guid AdjudicationId = new Guid("8cc0268e-5bbd-4244-8e89-5c105bb4be7a"); // TODO: Initialize to an appropriate value
     Assert.IsInstanceOfType(target.GetValuationFormDetails(AdjudicationId), typeof(IGRSS.DataAccessLayer.Adjudication.ValuationFormDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
           "eturn the expected value.");
 }
예제 #31
0
    protected void fvValuationForm_DataBound(object sender, EventArgs e)
    {
        if (fvValuationForm.CurrentMode == FormViewMode.Edit)
        {

            Guid ValuationId = new Guid(fldValId.Value);

            ViewState["DocDetails"] = new AdjudicationRequest().GetDocumentByValuationFormId(ValuationId);
            GridView GvDocDetails = ((GridView) fvValuationForm.FindControl("gvDocumentUpd"));
            GvDocDetails.DataSource = ViewState["DocDetails"];
            GvDocDetails.DataBind();
        }
    }
예제 #32
0
 public void ValuationFormDetailsTest()
 {
     IGRSS.BusinessLogicLayer.AdjudicationRequest target = new IGRSS.BusinessLogicLayer.AdjudicationRequest();
     Assert.IsInstanceOfType(target.ValuationFormDetails(), typeof(IGRSS.DataAccessLayer.Adjudication.ValuationFormDataTable), "IGRSS.BusinessLogicLayer.AdjudicationRequest.GetAdjudicationRequestById did not r" +
           "eturn the expected value.");
 }
예제 #33
0
    protected void FeeDetailsGrid_SelectedIndexChanged(object sender, EventArgs e)
    {
        string Mode = "Ins";
        Guid AdjudicationID = Guid.Empty;
        if (null == ViewState["FeeDetails"])
        {
            ViewState["FeeDetails"] = new AdjudicationRequest().GetAdjFeesDetailByAdjId(Guid.Empty);
            AdjudicationID = Guid.Empty;
        }
        if (fvValuationForm.CurrentMode == FormViewMode.Edit)
        {
            AdjudicationID = (Guid)fvValuationForm.DataKey["AdjudicationId"];
            Mode = "Upd";
        }

        GridView gv = (GridView)sender;
        DataTable dt = (DataTable)ViewState["FeeDetails"];

        DropDownList ddlFees = ((DropDownList)fvValuationForm.FindControl("ddlFeeType" + Mode));
        TextBox txtAmount = ((TextBox)fvValuationForm.FindControl("txtFeeAmount" + Mode));
        object[] keys = new object[gv.SelectedDataKey.Values.Count];
        for (int i = 0; i < keys.Length; i++)
        {
            keys[i] = gv.SelectedDataKey.Values[i];
        }
        DataRow dr = dt.Rows.Find(keys);

        if (null != dr)
        {
            ddlFees.SelectedValue = Convert.ToString(dr["FeeId"]);
            txtAmount.Text = Convert.ToString(dr["Amount"]);

        }

        ((Button)fvValuationForm.FindControl("btnAddFeeDetail" + Mode)).Visible = false;
        ((Button)fvValuationForm.FindControl("btnUpdateFeeDetail" + Mode)).Visible = true;
    }