Ejemplo n.º 1
0
        public ActionResult FormG(FormGmodel objFGM)
        {
            try
            {
                int i = 0;
                objFGM.SocietyTransID = Convert.ToString(Session["SocietyTransID"]);
                if (objFGM.DateOfSubmittionByInspector == null)
                {
                    objFGM.DateOfSubmittionByInspector = DateTime.Today;
                }
                if (!string.IsNullOrEmpty(objFGM.SocietyTransID))
                {
                    objFGM.DateOfSubmittionByInspector = Convert.ToDateTime(objFGM.DateOfSubmittionByInspector);
                    objFGM.ModeOfApplicationReceived   = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.ModeOfApplicationReceived);
                    objFGM.SocietyName = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.SocietyName);
                    objFGM.SocietyOrganizedByOwnInitiative            = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.SocietyOrganizedByOwnInitiative);
                    objFGM.NameOfSocietyProposed_Suitable             = Convert.ToBoolean(Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(Convert.ToString(objFGM.NameOfSocietyProposed_Suitable)));
                    objFGM.NameOfSocietyProposed_Suitable_Detail      = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.NameOfSocietyProposed_Suitable_Detail);
                    objFGM.SocietyOrganizedUnderProjectScheme         = Convert.ToBoolean(Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(Convert.ToString(objFGM.SocietyOrganizedUnderProjectScheme)));
                    objFGM.SocietyOrganizedUnderProjectScheme_Details = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.SocietyOrganizedUnderProjectScheme_Details);
                    objFGM.MainObjectsOfProposedSociety = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.MainObjectsOfProposedSociety);
                    objFGM.ObjectConsonanceWithCooperativePrinciples         = Convert.ToBoolean(Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(Convert.ToString(objFGM.ObjectConsonanceWithCooperativePrinciples)));
                    objFGM.ObjectConsonanceWithCooperativePrinciples_Details = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.ObjectConsonanceWithCooperativePrinciples_Details);
                    objFGM.AdoptedModalByeLaws                    = Convert.ToBoolean(Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(Convert.ToString(objFGM.AdoptedModalByeLaws)));
                    objFGM.AdoptedModalByeLaws_Details            = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.AdoptedModalByeLaws_Details);
                    objFGM.DeviationsModalByeLaws_Details         = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.DeviationsModalByeLaws_Details);
                    objFGM.QualificationsMembership               = Convert.ToBoolean(Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(Convert.ToString(objFGM.QualificationsMembership)));
                    objFGM.QualificationsMembership_Details       = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.QualificationsMembership_Details);
                    objFGM.PromoterMembers_CommonInterest         = Convert.ToBoolean(Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(Convert.ToString(objFGM.PromoterMembers_CommonInterest)));
                    objFGM.PromoterMembers_CommonInterest_Details = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.PromoterMembers_CommonInterest_Details);
                    objFGM.VerifiedFormB                           = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.VerifiedFormB);
                    objFGM.CorrectnessAllRespects                  = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.CorrectnessAllRespects);
                    objFGM.NoOfPromoters                           = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.NoOfPromoters);
                    objFGM.AreaOfOperation                         = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.AreaOfOperation);
                    objFGM.AreaPopulation                          = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.AreaPopulation);
                    objFGM.NumberAndPaidUpValue                    = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.NumberAndPaidUpValue);
                    objFGM.ShareInKind                             = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.ShareInKind);
                    objFGM.ExplanationToPromoters                  = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.ExplanationToPromoters);
                    objFGM.OtherCoopSocietyWithSameObjects         = Convert.ToBoolean(Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(Convert.ToString(objFGM.OtherCoopSocietyWithSameObjects)));
                    objFGM.OtherCoopSocietyWithSameObjects_Details = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.OtherCoopSocietyWithSameObjects_Details);
                    objFGM.ReasonForNotJoining                     = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.ReasonForNotJoining);
                    objFGM.AdverselyEffectOthers                   = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.AdverselyEffectOthers);
                    objFGM.ConcludingRemark                        = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.ConcludingRemark);
                    objFGM.Remarks = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(objFGM.Remarks);
                    i = objSSF.SaveDetailsForFormG(objFGM);
                    return(Json(i, JsonRequestBehavior.AllowGet));
                }
                i = 0;
                return(Json(i, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                return(RedirectToAction("Error", "Unauthorised"));

                throw ex;
            }
        }
Ejemplo n.º 2
0
        public ActionResult FormF()
        {
            if (Convert.ToString(Session["BrowserId"]) != GenerateHashKeyForCheckBroswerEveryCall())
            {
                return(RedirectToAction("Login", "Account"));
            }
            //int i = obj.CheckSessionEveryCall();
            //if (i != 0)
            //{
            //    return RedirectToAction("Login", "Account");
            //}
            FormFmodel  objFFM = new FormFmodel();
            FormAmodels objFAM = new FormAmodels();
            FormGmodel  objFGM = new FormGmodel();
            FormGmodel  objFF2 = new FormGmodel();

            objFF2           = objSSF.GetDetailsForInspectorFormG(Convert.ToString(Session["SocietyTransID"]));
            objFGM           = objSSF.GetDetailsForInspectorFormG2(Convert.ToString(Session["SocietyTransID"]));
            objFFM           = objSSF.GetDetailsForFormF(Convert.ToString(Session["SocietyTransID"]));
            objFAM           = objSSF.GetDetailsForFormA(Convert.ToString(Session["SocietyTransID"]));
            ViewBag.ARCSName = objFAM.ARCSName;
            ViewBag.Address1 = objFAM.Address1;
            ViewBag.Address2 = objFAM.Address2;
            ViewBag.District = objFAM.District;
            ViewBag.DateOfSubmittionByInspector = Convert.ToDateTime(objFF2.DateOfSubmittionByInspector).ToShortDateString();
            ViewBag.SocietyName = objFAM.SocietyName;
            ViewBag.Pin         = objFAM.Pin;
            ViewBag.PostOffice  = objFAM.PostOffice;
            ViewBag.InspectName = objFFM.InspectName;
            ViewBag.Remarks     = objFGM.Remarks;
            if (Request.IsAjaxRequest())
            {
                return(PartialView("~/Views/Inspector/FormF.cshtml"));
            }
            return(View());
        }
Ejemplo n.º 3
0
        public ActionResult DownloadFormG()
        {
            if (Convert.ToString(Session["BrowserId"]) != GenerateHashKeyForCheckBroswerEveryCall())
            {
                return(RedirectToAction("Login", "Account"));
            }
            //int i = obj.CheckSessionEveryCall();
            //if (i != 0)
            //{
            //    return RedirectToAction("Login", "Account");
            //}
            FormGmodel objFGM  = new FormGmodel();
            FormGmodel objFGM2 = new FormGmodel();

            objFGM  = objSSF.GetDetailsForInspectorFormG2(Convert.ToString(Session["SocietyTransID"]));
            objFGM2 = objSSF.GetDetailsForInspectorFormG(Convert.ToString(Session["SocietyTransID"]));
            ViewBag.DateOfSubmittionByInspector  = objFGM2.DateOfSubmittionByInspector;
            ViewBag.SocietyFullAddress           = objFGM2.SocietyFullAddress;
            ViewBag.MainObjectsOfProposedSociety = objFGM2.MainObjectsOfProposedSociety;
            ViewBag.ArscAddress                                       = objFGM2.ArscAddress;
            ViewBag.AdoptedModalByeLaws                               = (Convert.ToBoolean(objFGM.AdoptedModalByeLaws) == true) ? "Yes" : "No";
            ViewBag.AdoptedModalByeLaws_Details                       = objFGM.AdoptedModalByeLaws_Details;
            ViewBag.AdverselyEffectOthers                             = objFGM.AdverselyEffectOthers;
            ViewBag.AreaPopulation                                    = objFGM.AreaPopulation;
            ViewBag.ConcludingRemark                                  = objFGM.ConcludingRemark;
            ViewBag.CorrectnessAllRespects                            = objFGM.CorrectnessAllRespects;
            ViewBag.DeviationsModalByeLaws                            = objFGM.DeviationsModalByeLaws;
            ViewBag.DeviationsModalByeLaws_Details                    = objFGM.DeviationsModalByeLaws_Details;
            ViewBag.ExplanationToPromoters                            = objFGM.ExplanationToPromoters;
            ViewBag.MainObjectsOfProposedSociety                      = objFGM.MainObjectsOfProposedSociety;
            ViewBag.ModeOfApplicationReceived                         = objFGM.ModeOfApplicationReceived;
            ViewBag.NameOfSocietyProposed_Suitable                    = (Convert.ToBoolean(objFGM.NameOfSocietyProposed_Suitable) == true) ? "Yes" : "No";
            ViewBag.NoOfPromoters                                     = objFGM.NoOfPromoters;
            ViewBag.NumberAndPaidUpValue                              = objFGM.NumberAndPaidUpValue;
            ViewBag.ObjectConsonanceWithCooperativePrinciples         = (Convert.ToBoolean(objFGM.ObjectConsonanceWithCooperativePrinciples) == true) ? "Yes" : "No";
            ViewBag.ObjectConsonanceWithCooperativePrinciples_Details = objFGM.ObjectConsonanceWithCooperativePrinciples_Details;
            ViewBag.OtherCoopSocietyWithSameObjects                   = (Convert.ToBoolean(objFGM.OtherCoopSocietyWithSameObjects) == true) ? "Yes" : "No";
            ViewBag.OtherCoopSocietyWithSameObjects_Details           = objFGM.OtherCoopSocietyWithSameObjects_Details;
            ViewBag.PromoterMembers_CommonInterest                    = (Convert.ToBoolean(objFGM.PromoterMembers_CommonInterest) == true) ? "Yes" : "No";
            ViewBag.PromoterMembers_CommonInterest_Details            = objFGM.PromoterMembers_CommonInterest_Details;
            ViewBag.QualificationsMembership                          = (Convert.ToBoolean(objFGM.QualificationsMembership) == true) ? "Yes" : "No";
            ViewBag.QualificationsMembership_Details                  = objFGM.QualificationsMembership_Details;
            ViewBag.ReasonForNotJoining                               = objFGM.ReasonForNotJoining;
            ViewBag.ShareInKind                                       = objFGM.ShareInKind;
            ViewBag.SocietyOrganizedByOwnInitiative                   = objFGM.SocietyOrganizedByOwnInitiative;
            ViewBag.SocietyOrganizedUnderProjectScheme                = (Convert.ToBoolean(objFGM.SocietyOrganizedUnderProjectScheme) == true) ? "Yes" : "No";
            ViewBag.SocietyOrganizedUnderProjectScheme_Details        = objFGM.SocietyOrganizedUnderProjectScheme_Details;
            ViewBag.VerifiedFormB                                     = objFGM.VerifiedFormB;
            ViewBag.AreaOfOperation                                   = objFGM.AreaOfOperation;
            ViewBag.DateOfSubmittionByInspector                       = objFGM2.DateOfSubmittionByInspector;
            ViewBag.Remarks = objFGM.Remarks;
            ViewBag.DateOfSubmissionFormG = (Convert.ToBoolean(objFGM.DateOfSubmissionFormG == null) ? null : Convert.ToDateTime(objFGM.DateOfSubmissionFormG).ToShortDateString());
            List <SelectListItem> lstSL = new List <SelectListItem>();

            lstSL         = GetSocietyList();
            ViewBag.lstSL = lstSL;
            if (Request.IsAjaxRequest())
            {
                return(PartialView("~/Views/Inspector/DownloadFormG.cshtml"));
            }
            else
            {
                return(View());
            }
        }