Пример #1
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;
    }
Пример #2
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);
    }