protected void LoadReport(int prjlId, ReportDocument repDoc)
        {
            objBarsikService = new BarsikKaryekramService();
            ProjectOutputTBarsikBO objProjectOutBarsik = new ProjectOutputTBarsikBO();

            objProjectOutBarsik.Lang         = SessionHelper.SessionLanguageSetting;
            objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
            objProjectOutBarsik.ProjectId    = prjlId;
            objProjectOutBarsik.FiscalYearId = SessionHelper.SessionFiscalYear.ToInt32();
            objProjectOutBarsik.ChaumasikId  = ddlChaumasik.SelectedValue.ToInt32();
            //Session["dtProjectPratifal"] = objBarsikService.PopulateProjectProgress(objProjectOutBarsik);
            DataTable dtProjectPratifal = (DataTable)Session["dtProjectPratifal"];

            Session["dtPopulateProjectPratifalReport"] = dtProjectPratifal;
            objRptFactory = new ReportFactory();
            objRptFactory.SetReport(repDoc);
            objRptServices = new ReportServices();
            objRptServices.GetReport(repDoc, RptViewer);

            /*repDoc.Database.Tables[0].SetDataSource(dtProjectNatija);*/

            repDoc.Database.Tables[0].SetDataSource(dtProjectPratifal);

            if (dtProjectPratifal != null && dtProjectPratifal.Rows.Count > 0)
            {
                RptViewer.ReportSource    = repDoc;
                Session["PratifalReport"] = repDoc;
            }
            else
            {
                RptViewer.ReportSource    = null;
                Session["PratifalReport"] = null;
            }
        }
Ejemplo n.º 2
0
        protected void GrdTarget_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            int i = 0;
            ProjectOutputTBarsikBO objProjectOutBarsik = new ProjectOutputTBarsikBO();

            if (e.CommandName == "edit")
            {
                GridViewRow gvr      = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer);
                int         RowIndex = gvr.RowIndex;
                objProjectOutBarsik.PTargetId =
                    ((HiddenField)grdTarget.Rows[RowIndex].FindControl("hidPTargetId")).Value.ToDecimal();
                objProjectOutBarsik.PTargetBId     = e.CommandArgument.ToString().ToDecimal();
                objProjectOutBarsik.PTargetFirstP  = ((TextBox)grdTarget.Rows[RowIndex].FindControl("txtFirstYearTarget")).Text;
                objProjectOutBarsik.PTargetSecondP = ((TextBox)grdTarget.Rows[RowIndex].FindControl("txtSecondYearTarget")).Text;
                objProjectOutBarsik.PTargetThirdP  = ((TextBox)grdTarget.Rows[RowIndex].FindControl("txtThirdYearTarget")).Text;
                objProjectOutBarsik.ProjectId      = Session["projectId"].ToInt32();
                objProjectOutBarsik.FiscalYearId   = SessionHelper.SessionFiscalYear.ToDecimal();


                if (objProjectOutBarsik.PTargetBId != 0)
                {
                    if (ddlChaumarsik.SelectedValue == "1")
                    {
                        objProjectOutBarsik.Mode = "UF";
                    }
                    else if (ddlChaumarsik.SelectedValue == "2")
                    {
                        objProjectOutBarsik.Mode = "US";
                    }
                    else
                    {
                        objProjectOutBarsik.Mode = "UT";
                    }
                }

                objBarsikService = new BarsikKaryekramService();
                objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
                i = objBarsikService.InsertUpdateProjectOutputTBarsik(objProjectOutBarsik);
                if (i > 0)
                {
                    Response.Write("<script>alert('Target successfully recorded.') </script>");
                    Response.Redirect(Constants.ConstantAppPath + "/Modules/BarsikKaryekram/ListProjectNatijaPragati.aspx");
                }
                else
                {
                    Response.Write("<script>alert('Target not recorded.') </script>");
                }
            }
        }
Ejemplo n.º 3
0
        protected void GrdTarget_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            int i = 0;
            ProjectOutputTBarsikBO objProjectOutBarsik = new ProjectOutputTBarsikBO();

            if (e.CommandName == "edit")
            {
                GridViewRow gvr      = (GridViewRow)(((Button)e.CommandSource).NamingContainer);//
                int         RowIndex = gvr.RowIndex;

                /*objProjectOutBarsik.PTargetId =
                 *  ((HiddenField)grdTarget.Rows[RowIndex].FindControl("hidProjectOutputId")).Value.ToDecimal();*/
                objProjectOutBarsik.ProjectOutputId = e.CommandArgument.ToString().ToInt32();
                objProjectOutBarsik.PTargetFirstP   = ((TextBox)grdTarget.Rows[RowIndex].FindControl("txtFirstQuarterProgress")).Text;
                objProjectOutBarsik.PTargetSecondP  = ((TextBox)grdTarget.Rows[RowIndex].FindControl("txtSecondQuarterProgress")).Text;
                objProjectOutBarsik.PTargetThirdP   = ((TextBox)grdTarget.Rows[RowIndex].FindControl("txtThirdQuarterProgress")).Text;
                objProjectOutBarsik.ProjectId       = Session["projectId"].ToInt32();
                objProjectOutBarsik.FiscalYearId    = SessionHelper.SessionFiscalYear.ToInt32();
                objProjectOutBarsik.ModifiedBy      = Session["username"].ToString();
                objProjectOutBarsik.ModifiedDate    = DateTime.Now;
                if (ddlChaumasik.SelectedValue == "1")
                {
                    objProjectOutBarsik.Mode = "UF";
                }
                else if (ddlChaumasik.SelectedValue == "2")
                {
                    objProjectOutBarsik.Mode = "US";
                }
                else
                {
                    objProjectOutBarsik.Mode = "UT";
                }


                objBarsikService = new BarsikKaryekramService();
                objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
                i = objBarsikService.InsertUpdateProjectOutputProgress(objProjectOutBarsik);
                if (i > 0)
                {
                    Response.Write("<script>alert('Target successfully recorded.') </script>");
                    Response.Redirect(Constants.ConstantAppPath + "/Modules/OutputTargetManagement/AddProjectOutputProgress.aspx");
                    //PopulateProgress();
                }
                else
                {
                    Response.Write("<script>alert('Target not recorded.') </script>");
                }
            }
        }
Ejemplo n.º 4
0
        protected void PopulateDonarAmountDetails()
        {
            ProjectBudgetDetailBO objPBudgBO = new ProjectBudgetDetailBO();

            //objProjectBO.BudgetHeadId = ddlBudgetHeadId;
            objPBudgBO.ProjectId             = Session["projectId"].ToInt32();//change after
            objPBudgBO.FiscalYearId          = SessionHelper.SessionFiscalYear.ToInt32();
            objBarsikService                 = new BarsikKaryekramService();
            objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
            DataTable dtShrotgatAayojanBadfad = objBarsikService.PopulateBudgDetail(objPBudgBO);

            dtA = dtShrotgatAayojanBadfad;
            if (dtShrotgatAayojanBadfad != null && dtShrotgatAayojanBadfad.Rows.Count > 0)
            {
                rptAayojanaBadfad.DataSource = dtShrotgatAayojanBadfad;
                rptAayojanaBadfad.DataBind();
            }
        }
Ejemplo n.º 5
0
        protected void PopulateBarshikAnya()
        {
            ProjectBarshikAnyaBO objProjectBarshikAnya = new ProjectBarshikAnyaBO();

            objProjectBarshikAnya.ProjectId    = Session["projectId"].ToInt32();
            objProjectBarshikAnya.FiscalYearId = SessionHelper.SessionFiscalYear.ToInt32();
            DataTable dt = null;

            objBarsikService = new BarsikKaryekramService();
            objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
            dt = objBarsikService.PopulateBarshikAnya(objProjectBarshikAnya);
            if (dt != null && dt.Rows.Count > 0)
            {
                txtAnyaFirst.Text      = dt.Rows[0]["FIRST_RAKAM_ANYA"].ToString();
                txtAnyaSecond.Text     = dt.Rows[0]["SECOND_RAKAM_ANYA"].ToString();
                txtAnyaThird.Text      = dt.Rows[0]["THIRD_RAKAM_ANYA"].ToString();
                txtAnyaRemarks.Text    = dt.Rows[0]["REMARKS_ANYA"].ToString();
                hidBarshikAnyaId.Value = dt.Rows[0]["BARSHIK_ANYA_ID"].ToString();
            }
        }
Ejemplo n.º 6
0
        protected void PopulateBarshikBharit()
        {
            BarsikBharitBo objBarsikBharitBo = new BarsikBharitBo();

            objBarsikBharitBo.ProjectId    = Session["projectId"].ToInt32();
            objBarsikBharitBo.FiscalYearId = SessionHelper.SessionFiscalYear.ToInt32();
            DataTable dt = null;

            objBarsikService = new BarsikKaryekramService();
            objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
            dt = objBarsikService.PopulateBarshikBharit(objBarsikBharitBo);
            if (dt != null && dt.Rows.Count > 0)
            {
                txtBarshik.Text          = dt.Rows[0]["BARSHIK_BHARIT_LAKSHYA"].ToString();
                txtFirstBharit.Text      = dt.Rows[0]["FIRST_BHARIT_LAKSHYA"].ToString();
                txtSecondBharit.Text     = dt.Rows[0]["SECOND_BHARIT_LAKSHYA"].ToString();
                txtThirdBharit.Text      = dt.Rows[0]["THIRD_BHARIT_LAKSHYA"].ToString();
                hidBarshikBharitId.Value = dt.Rows[0]["BARSHIK_BHARIT_LAKSHYA_ID"].ToString();
            }
        }
Ejemplo n.º 7
0
        protected void PopulaterThekaParamarsaDetail()
        {
            ProjectBudgetDetailBO objPBudgBO = new ProjectBudgetDetailBO();
            DataTable             dt         = null;

            objPBudgBO.ProjectId             = Session["projectId"].ToInt32();//change after
            objPBudgBO.FiscalYearId          = SessionHelper.SessionFiscalYear.ToInt32();
            objBarsikService                 = new BarsikKaryekramService();
            objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
            dt = objBarsikService.PopulateBarsikThekaParamarsa(objPBudgBO);
            if (dt != null && dt.Rows.Count > 0)
            {
                txtPSBNo.Text             = dt.Rows[0]["SWADESHI"].ToString();
                txtPSBRakam.Text          = dt.Rows[0]["RAKAM_SWADESHI"].ToString();
                txtPSFirstTNo.Text        = dt.Rows[0]["P_F_T_SWADESHI_NO"].ToString();
                txtPSFirstTRakam.Text     = dt.Rows[0]["P_F_T_SWADESHI_RAKAM"].ToString();
                txtPSSecondTNo.Text       = dt.Rows[0]["P_S_T_SWADESHI_NO"].ToString();
                txtPSSSecondTRakam.Text   = dt.Rows[0]["P_S_T_SWADESI_RAKAM"].ToString();
                txtPSThirdTNo.Text        = dt.Rows[0]["P_T_T_SWADESHI_NO"].ToString();
                txtPSThirdTRakam.Text     = dt.Rows[0]["P_T_T_SWADESHI_RAKAM"].ToString();
                txtPBBNo.Text             = dt.Rows[0]["BIDESHI"].ToString();
                txtPBBRakam.Text          = dt.Rows[0]["RAKAM_BIDESHI"].ToString();
                txtPBFirstTNo.Text        = dt.Rows[0]["P_F_T_BIDESHI_NO"].ToString();
                txtPBFirstTRakam.Text     = dt.Rows[0]["P_F_T_BIDESHI_RAKAM"].ToString();
                txtPBSecondTNo.Text       = dt.Rows[0]["P_S_T_BIDESHI_NO"].ToString();
                txtPBSecondTRakam.Text    = dt.Rows[0]["P_S_T_BIDESHI_RAKAM"].ToString();
                txtPBThirdTNo.Text        = dt.Rows[0]["P_T_T_BIDESHI_NO"].ToString();
                txtPBThirdTRakam.Text     = dt.Rows[0]["P_T_T_BIDESHI_RAKAM"].ToString();
                txtThekaBNo.Text          = dt.Rows[0]["THEKKA_SANKHYA"].ToString();
                txtThekaBRakam.Text       = dt.Rows[0]["THEKKA_RAKAM"].ToString();
                txtThekaFirstTNo.Text     = dt.Rows[0]["THEKA_F_T_NO"].ToString();
                txtThekaFirstTRakam.Text  = dt.Rows[0]["THEKA_F_T_RAKAM"].ToString();
                txtThekaSecondTNO.Text    = dt.Rows[0]["THEKA_S_T_NO"].ToString();
                txtThekaSecondTRakam.Text = dt.Rows[0]["THEKA_S_T_RAKAM"].ToString();
                txtThekaThirdTNo.Text     = dt.Rows[0]["THEKA_T_T_NO"].ToString();
                txtThekaThirdTRakam.Text  = dt.Rows[0]["THEKA_T_T_RAKAM"].ToString();
                lblModification.Text      = dt.Rows[0]["MODIFIED_DATE"].ToDateTime().ToString("D");
                lblModifiedBy.Text        = dt.Rows[0]["MODIFIED_BY"].ToString();
                hidThekaParamarsaId.Value = dt.Rows[0]["BARSIK_THEKA_P_ID"].ToString();
            }
        }
Ejemplo n.º 8
0
        protected void PopulateBarshikFile()
        {
            /*aBarshikFile.InnerHtml = "";
             * aBarshikFile.HRef = null;*/
            ProjectBarsikThekaParamarsaBO objBo = new ProjectBarsikThekaParamarsaBO();

            objBarsikService = new BarsikKaryekramService();
            objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
            objBo.ProjectId    = Session["projectId"].ToInt32();//change after
            objBo.FiscalYearId = SessionHelper.SessionFiscalYear.ToInt32();
            DataTable dtBarshikFile = objBarsikService.PopulateBarshikFile(objBo);

            Session["dtBarshikFile"] = objBarsikService.PopulateBarshikFile(objBo);

            if (dtBarshikFile != null && dtBarshikFile.Rows.Count > 0)
            {
                if (dtBarshikFile.Rows[0]["FILE_NAME"].ToString() != "")
                {
                    lblFileWarning.Visible   = true;
                    grdUploadedFiles.Visible = true;
                    string fileName = "";
                    Session["existingFilename"] = fileName = dtBarshikFile.Rows[0]["FILE_NAME"].ToString();
                    DataTable dtFile = new DataTable();
                    dtFile.Columns.Add("FILE_NAME");
                    List <string> fileList = fileName.Split(new char[] { ',' }).ToList <string>();

                    for (int j = 0; j < fileList.Count - 1; j++)
                    {
                        DataRow dr = dtFile.NewRow();
                        dr[0] = fileList[j];
                        dtFile.Rows.Add(dr);
                    }
                    grdUploadedFiles.DataSource = dtFile;
                    grdUploadedFiles.DataBind();
                }
                else
                {
                    Session["existingFilename"] = "";
                }
            }
        }
Ejemplo n.º 9
0
        private void PopulateAllProgress()
        {
            objBarsikService = new BarsikKaryekramService();
            ProjectOutputTBarsikBO objProjectOutBarsik = new ProjectOutputTBarsikBO();

            objProjectOutBarsik.Lang         = SessionHelper.SessionLanguageSetting;
            objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
            objProjectOutBarsik.ProjectId    = Session["projectId"].ToInt32();
            objProjectOutBarsik.FiscalYearId = SessionHelper.SessionFiscalYear.ToInt32();
            //objProjectOutBarsik.ChaumasikId = SessionHelper.SessionFiscalYear.ToInt32();
            Session["dtProgress"] = objBarsikService.PopulateProjectProgress(objProjectOutBarsik);
            DataTable dtProgress = (DataTable)Session["dtProgress"];

            if (dtProgress != null && dtProgress.Rows.Count > 0)
            {
                grdTarget.DataSource = dtProgress;
                grdTarget.DataBind();
                lblModification.Text = dtProgress.Rows[0]["OP_MODIFIED_DATE"].ToDateTime().ToString("D");
                lblModifiedBy.Text   = dtProgress.Rows[0]["OP_MODIFIED_BY"].ToString();
            }
        }
Ejemplo n.º 10
0
        private void PopulateAllTargets()
        {
            objBarsikService = new BarsikKaryekramService();
            ProjectOutputTBarsikBO objProjectOutBarsik = new ProjectOutputTBarsikBO();

            objProjectOutBarsik.Lang         = SessionHelper.SessionLanguageSetting;
            objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
            objProjectOutBarsik.ProjectId    = Session["projectId"].ToInt32();
            objProjectOutBarsik.FiscalYearId = SessionHelper.SessionFiscalYear.ToInt32();
            Session["dtTarget"] = objBarsikService.PopulateProjectTargetsBarsik(objProjectOutBarsik);
            DataTable dtTarget = (DataTable)Session["dtTarget"];

            if (dtTarget != null && dtTarget.Rows.Count > 0)
            {
                grdTarget.DataSource = dtTarget;
                grdTarget.DataBind();
                Session["TargetData"] = dtTarget;
            }
            else
            {
            }
        }
Ejemplo n.º 11
0
        protected void LoadReport(int prjlId, ReportDocument repDoc)
        {
            //repDoc = new ReportDocument();

            objBarsikService = new BarsikKaryekramService();
            ProjectOutputTBarsikBO objProjectOutBarsik = new ProjectOutputTBarsikBO();

            objProjectOutBarsik.Lang         = SessionHelper.SessionLanguageSetting;
            objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
            objProjectOutBarsik.ProjectId    = prjlId;
            objProjectOutBarsik.FiscalYearId = SessionHelper.SessionFiscalYear.ToInt32();
            objProjectOutBarsik.ChaumasikId  = ddlChaumasik.SelectedValue.ToInt32();

            /*Session["dtProjectNatija"] = objBarsikService.PopulateProjectTargetsBarsikRpt(objProjectOutBarsik);
             * DataTable dtProjectNatija = (DataTable) Session["dtProjectNatija"];
             *
             * Session["dtPopulateProjectNatijaReport"] = dtProjectNatija;*/

            Session["dtProjectPratifal"] = objBarsikService.PopulateProjectProgress(objProjectOutBarsik);
            DataTable dtProjectPratifal = (DataTable)Session["dtProjectPratifal"];

            Session["dtPopulateProjectPratifalReport"] = dtProjectPratifal;

            objRptFactory = new ReportFactory();
            objRptFactory.SetReport(repDoc);


            objRptServices = new ReportServices();
            objRptServices.GetReport(repDoc, RptViewer);

            /*repDoc.Database.Tables[0].SetDataSource(dtProjectNatija);*/

            repDoc.Database.Tables[0].SetDataSource(dtProjectPratifal);

            //cryParameter(repDoc);

            // RptViewer.ReportSource = repDoc;
            //chartViewer.ReportSource = objPrjBhautikPragatiGrpRpt;


            /*if (dtProjectNatija != null && dtProjectNatija.Rows.Count > 0)
             * {
             *  RptViewer.ReportSource = repDoc;
             *  Session["NatijaReport"] = repDoc;
             * }
             * else
             * {
             *  RptViewer.ReportSource = null;
             *  Session["NatijaReport"] = null;
             * }*/

            if (dtProjectPratifal != null && dtProjectPratifal.Rows.Count > 0)
            {
                RptViewer.ReportSource    = repDoc;
                Session["PratifalReport"] = repDoc;
            }
            else
            {
                RptViewer.ReportSource    = null;
                Session["PratifalReport"] = null;
            }


            // crystalViewer.Zoom(75);
            //chartViewer.Zoom(93);
        }
Ejemplo n.º 12
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            ProjectBudgetDetailBO objBudgProject    = new ProjectBudgetDetailBO();
            DropDownList          ddlShrot          = new DropDownList();
            DropDownList          ddlBhuktaniPrakar = new DropDownList();
            TextBox     txtRakam        = new TextBox();
            TextBox     txtFirstTRakam  = new TextBox();
            TextBox     txtSecondTRakam = new TextBox();
            TextBox     txtThirdTRakam  = new TextBox();
            HiddenField hidBadfadId     = new HiddenField();

            foreach (RepeaterItem rptItem in rptAayojanaBadfad.Items)
            {
                int k = 0;
                ddlShrot                         = (DropDownList)rptItem.FindControl("ddlShrot");
                ddlBhuktaniPrakar                = (DropDownList)rptItem.FindControl("ddlBhuktaniPrakar");
                txtRakam                         = (TextBox)rptItem.FindControl("txtRakam");
                txtFirstTRakam                   = (TextBox)rptItem.FindControl("txtFirstTRakam");
                txtSecondTRakam                  = (TextBox)rptItem.FindControl("txtSecondTRakam");
                txtThirdTRakam                   = (TextBox)rptItem.FindControl("txtThirdTRakam");
                hidBadfadId                      = (HiddenField)rptItem.FindControl("hidBadfadId");
                objBudgProject.BadfadId          = hidBadfadId.Value.ToDecimal();
                objBudgProject.FirstTRakam       = txtFirstTRakam.Text.ToDecimal();
                objBudgProject.SecondTRakam      = txtSecondTRakam.Text.ToDecimal();
                objBudgProject.ThirdCRakam       = txtThirdTRakam.Text.ToDecimal();
                objBudgProject.FiscalYearId      = SessionHelper.SessionFiscalYear.ToInt32();
                objBudgProject.Mode              = "I";
                objBarsikService                 = new BarsikKaryekramService();
                objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
                objBarsikService.InsertUpdateProjectBudgDetail(objBudgProject);
            }
            ProjectBarsikThekaParamarsaBO objThekaParamarsa = new ProjectBarsikThekaParamarsaBO();

            //barshikAnya
            ProjectBarshikAnyaBO objBarshikAnyaBo = new ProjectBarshikAnyaBO();

            objBarshikAnyaBo.ProjectId       = Session["projectId"].ToInt32();
            objBarshikAnyaBo.FiscalYearId    = Session["fiscal_year_id"].ToInt32();
            objBarshikAnyaBo.FirstRakamAnya  = txtAnyaFirst.Text.ToDecimal();
            objBarshikAnyaBo.SecondRakamAnya = txtAnyaSecond.Text.ToDecimal();
            objBarshikAnyaBo.ThirdRakamAnya  = txtAnyaThird.Text.ToDecimal();
            objBarshikAnyaBo.RemarksAnya     = txtAnyaRemarks.Text;

            objBarsikService = new BarsikKaryekramService();
            objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
            if (hidBarshikAnyaId.Value == "")
            {
                objBarshikAnyaBo.Mode = "I";
            }
            else
            {
                objBarshikAnyaBo.Mode          = "U";
                objBarshikAnyaBo.BarshikAnyaID = hidBarshikAnyaId.Value.ToInt32();
            }

            //barshikBharit
            BarsikBharitBo objBarsikBharitBo = new BarsikBharitBo();

            objBarsikBharitBo.ProjectId            = Session["projectId"].ToInt32();
            objBarsikBharitBo.FiscalYearId         = Session["fiscal_year_id"].ToInt32();
            objBarsikBharitBo.BarshikBharitLakshya = txtBarshik.Text.ToDecimal();
            objBarsikBharitBo.FirstBharitLakshya   = txtFirstBharit.Text.ToDecimal();
            objBarsikBharitBo.SecondBharitLakshya  = txtSecondBharit.Text.ToDecimal();
            objBarsikBharitBo.ThirdBharitLakshya   = txtThirdBharit.Text.ToDecimal();
            if (hidBarshikBharitId.Value == "")
            {
                objBarsikBharitBo.Mode = "I";
            }
            else
            {
                objBarsikBharitBo.Mode = "U";
            }


            if (hidThekaParamarsaId.Value == "")
            {
                objThekaParamarsa.Mode = "I";
            }
            else
            {
                objThekaParamarsa.Mode           = "U";
                objThekaParamarsa.BarsikThekaPId = hidThekaParamarsaId.Value.ToDecimal();
            }

            //paramarsa swadeshi
            objThekaParamarsa.PFTSwadeshiNo    = txtPSFirstTNo.Text.ToDecimal();
            objThekaParamarsa.PFTSwadeshiRakam = txtPSFirstTRakam.Text.ToDecimal();
            objThekaParamarsa.PSTSwadeshiNo    = txtPSSecondTNo.Text.ToDecimal();
            objThekaParamarsa.PSTSwadesiRakam  = txtPSSSecondTRakam.Text.ToDecimal();
            objThekaParamarsa.PTTSwadeshiNo    = txtPSThirdTNo.Text.ToDecimal();
            objThekaParamarsa.PTTSwadeshiRakam = txtPSThirdTRakam.Text.ToDecimal();
            //pragati
            objThekaParamarsa.PFPSwadeshiNo    = 0;
            objThekaParamarsa.PFPSwadeshiRakam = 0;
            objThekaParamarsa.PSPSwadeshiNo    = 0;
            objThekaParamarsa.PSPSwadesiRakam  = 0;
            objThekaParamarsa.PTPSwadeshiNo    = 0;
            objThekaParamarsa.PTPSwadeshiRakam = 0;
            //end

            //paramarsadata bideshi
            objThekaParamarsa.PFTBideshiNo    = txtPBFirstTNo.Text.ToDecimal();
            objThekaParamarsa.PFTBideshiRakam = txtPBFirstTRakam.Text.ToDecimal();
            objThekaParamarsa.PSTBideshiNo    = txtPBSecondTNo.Text.ToDecimal();
            objThekaParamarsa.PSTBideshiRakam = txtPBSecondTRakam.Text.ToDecimal();
            objThekaParamarsa.PTTBideshiNo    = txtPBThirdTNo.Text.ToDecimal();
            objThekaParamarsa.PTTBideshiRakam = txtPBThirdTRakam.Text.ToDecimal();
            //pragati
            objThekaParamarsa.PFPBideshiNo    = 0;
            objThekaParamarsa.PFPBideshiRakam = 0;
            objThekaParamarsa.PSPBideshiNo    = 0;
            objThekaParamarsa.PSPBideshiRakam = 0;
            objThekaParamarsa.PTPBideshiNo    = 0;
            objThekaParamarsa.PTPBideshiRakam = 0;
            //end
            //
            //theka details//
            objThekaParamarsa.ThekaFTNo    = txtThekaFirstTNo.Text.ToDecimal();
            objThekaParamarsa.ThekaFTRakam = txtThekaFirstTRakam.Text.ToDecimal();
            objThekaParamarsa.ThekaSTNo    = txtThekaSecondTNO.Text.ToDecimal();
            objThekaParamarsa.ThekaSTRakam = txtThekaSecondTRakam.Text.ToDecimal();
            objThekaParamarsa.ThekaTTNo    = txtThekaThirdTNo.Text.ToDecimal();
            objThekaParamarsa.ThekaTTRakam = txtThekaThirdTRakam.Text.ToDecimal();
            //pragati
            objThekaParamarsa.ThekaFPNo    = 0;
            objThekaParamarsa.ThekaFPRakam = 0;
            objThekaParamarsa.ThekaSPNo    = 0;
            objThekaParamarsa.ThekaSPRakam = 0;
            objThekaParamarsa.ThekaTPNo    = 0;
            objThekaParamarsa.ThekaTPRakam = 0;

            //end
            objThekaParamarsa.FiscalYearId = SessionHelper.SessionFiscalYear.ToInt32();
            objThekaParamarsa.ProjectId    = Session["projectId"].ToInt32();
            objThekaParamarsa.ModifiedBy   = Session["username"].ToString();
            objThekaParamarsa.ModifiedDate = DateTime.Now;
            objBarsikService.InsertUpdateProjectBarsikThekaParamarsa(objThekaParamarsa);

            //upload multiple files
            ProjectBarsikThekaParamarsaBO objBo = new ProjectBarsikThekaParamarsaBO();

            objBarsikService = new BarsikKaryekramService();
            objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();

            //insert barshik anya
            int a = objBarsikService.InsertUpdateBarshikAnya(objBarshikAnyaBo);

            int b = objBarsikService.InsertUpdateBarshikBharit(objBarsikBharitBo);

            objBo.FiscalYearId = Session["fiscal_year_id"].ToInt32();
            objBo.ProjectId    = Session["projectId"].ToInt32();
            string allFiles = "";

            ///// file upload remains
            if (FileBarshikUpload.HasFile) // CHECK IF ANY FILE HAS BEEN SELECTED.
            {
                HttpFileCollection hfc = Request.Files;


                for (int f = 0; f <= hfc.Count - 1; f++)
                {
                    HttpPostedFile hpf = hfc[f];
                    if (hpf.ContentLength > 0)
                    {
                        string fileName;
                        fileName = DateTime.Now + hpf.FileName;
                        string ext            = System.IO.Path.GetExtension(hpf.FileName);
                        var    splitseparator = new string[] { ext };
                        var    result         = Splitstring(fileName, splitseparator);
                        String source         = result[0];
                        string str            = source + ext;
                        str = Regex.Replace(str, @"/", "_");
                        str = Regex.Replace(str, @":", "_");
                        str = Regex.Replace(str, @" ", "_");
                        str = Regex.Replace(str, @",", "_");
                        String newfolder = Server.MapPath("~") + @"BarshikFiles\";
                        String path      = newfolder + str;
                        hpf.SaveAs(path);
                        allFiles += str + ",";
                    }
                }
                objBo.BarshikFileName = allFiles;
            }
            else
            {
                DataTable BarshikFile = (DataTable)Session["dtBarshikFile"];
                if (BarshikFile != null && BarshikFile.Rows.Count > 0)
                {
                    //update case
                    objBo.BarshikFileName = Session["existingFilename"].ToString();
                }
                else
                {
                    //insert case
                    objBo.BarshikFileName = "";
                }
            }

            wbs = new ProjectService();
            wbs.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationProject();
            int j = objBarsikService.InsertUpdateBarshikFile(objBo);

            Response.Redirect(Constants.ConstantAppPath + "/Modules/BarsikKaryekram/BarsikKaryekram.aspx");

            /*if (FileBarshik.HasFile)
             * {
             *  ProjectBarsikThekaParamarsaBO objBo = new ProjectBarsikThekaParamarsaBO();
             *  objBarsikService = new BarsikKaryekramService();
             *  objBarsikService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationBarsikKaryekram();
             *  //lblImage.Text = DateTime.Now + FileBarshik.FileName;
             *  string ext = System.IO.Path.GetExtension(this.FileBarshik.PostedFile.FileName);
             *  var splitseparator = new string[] { ext };
             *  var result = Splitstring(DateTime.Now + FileBarshik.FileName, splitseparator);
             *  String source = result[0];
             *  string str = source  + ext;
             *  str = Regex.Replace(str, @"/", "_");
             *  str = Regex.Replace(str, @":", "_");
             *  objBo.BarshikFileName = str;
             *  objBo.FiscalYearId = Session["fiscal_year_id"].ToInt32();
             *  objBo.ProjectId = Session["projectId"].ToInt32();
             *  UploadFile(FileBarshik, str);
             *  int i=objBarsikService.InsertUpdateBarshikFile(objBo);
             *
             * }*/
        }