public ActionResult GetDetails_LanguageCountry(string ID, string LanguageID, string CountryID, string Visibility, string IsActive) { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { return(PartialView("~/Views/MasterPages/LanguageCountryDetails.cshtml", iGstSvc.GetDetails_LanguageCountry(ID, LanguageID, CountryID, Visibility, IsActive.Trim() == "Y"))); } }
public static List <StaticValuInfo> ListStaticValue() { List <StaticValuInfo> countries = null; System.Text.StringBuilder sbCountryList = new System.Text.StringBuilder(); try { if (System.Web.HttpContext.Current.Application["StaticValue"] == null) { countries = new Master_Svc.MasterServiceClient().GetList_StaticValue(""); System.Web.HttpContext.Current.Application["StaticValue"] = countries; return(countries); } else { return((List <StaticValuInfo>)System.Web.HttpContext.Current.Application["StaticValue"]); } } catch (Exception ex) { ErrorLog.LogErrors_Comments(ex.Message + ex.InnerException + ex.StackTrace, "Controler", "Country ist", ""); } return(new List <StaticValuInfo>()); }
public static string ListStates(string SelectedContry, string SelectedState) { List <StateInfo> states = null; System.Text.StringBuilder sbStateList = new System.Text.StringBuilder(); try { states = new Master_Svc.MasterServiceClient().GetList_State(SelectedContry); } catch (Exception ex) { ErrorLog.LogErrors_Comments(ex.Message + ex.InnerException + ex.StackTrace, "Controler", "Country ist", ""); states = new List <StateInfo>(); } sbStateList.AppendLine("<option value=\"\">Select one</option>"); if (states != null && states.Count > 0) { foreach (StateInfo state in states) { if (!string.IsNullOrEmpty(SelectedState) && state.StateID.Trim() == SelectedState.Trim()) { sbStateList.AppendLine("<option value=\"" + state.StateID + "\" selected=\"selected\">" + state.StateName + "</option>"); } else { sbStateList.AppendLine("<option value=\"" + state.StateID + "\">" + state.StateName + "</option>"); } } } return(sbStateList.ToString()); }
public ActionResult GetList_LanguageCountryDropdownList() { if (System.Web.HttpContext.Current.Session["LanguageCountrtyList"] == null) { string CountryID = "0"; if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserID != null && ((UserInfo)Session["UserDetails"]).Country != null && ((UserInfo)Session["UserDetails"]).Country.Trim().Length > 0) { CountryID = ((UserInfo)Session["UserDetails"]).Country; } using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { List <LanguageCountryInfo> list = iGstSvc.GetList_LanguageCountry("", "", CountryID, "", true); if (list == null) { list = new List <LanguageCountryInfo>(); } LanguageCountryInfo obLanguage = new LanguageCountryInfo(); obLanguage.LanguageId = "0"; obLanguage.LanguageName = "English"; list.Insert(0, obLanguage); obLanguage = null; System.Web.HttpContext.Current.Session["LanguageCountrtyList"] = list; return(Json(list, JsonRequestBehavior.AllowGet)); } } else { return(Json((List <LanguageCountryInfo>)System.Web.HttpContext.Current.Session["LanguageCountrtyList"], JsonRequestBehavior.AllowGet)); } }
public ActionResult GetList_Language() { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { return(View("~/Views/MasterPages/LanguageList.cshtml", iGstSvc.GetList_Language("", "", true))); } }
public ActionResult GetList_CategoryForDropdown(string CategoryID, string option, string CountryID) { if (System.Web.HttpContext.Current.Application["Category"] == null) { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { if (Session["Language"] == null) { Session["Language"] = 0; } int d = 0; int.TryParse(CountryID, out d); List <CategoryInfo> list = iGstSvc.GetList_CategoryForDropdown("", d, CategoryID, option, Session["Language"].ToString()); System.Web.HttpContext.Current.Application["Category"] = list; return(Json(list, JsonRequestBehavior.AllowGet)); } } else { return(Json(((List <CategoryInfo>)System.Web.HttpContext.Current.Application["Category"]), JsonRequestBehavior.AllowGet)); } }
public ActionResult Save_Category(string isOnlyDelete, string CountryId, string CategoryId, string ParentCategoryId, string WillCarryContent, string CategoryName, string ServiceOrGoods, string HsnSacCode, string IsActive, string IsExpenseType) { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { CategoryInfo objCategory = new CategoryInfo(); objCategory.CategoryId = CategoryId; objCategory.CountryId = CountryId; objCategory.ParentCategoryId = ParentCategoryId; objCategory.CategoryName = CategoryName; objCategory.ServiceOrGoods = ServiceOrGoods; objCategory.WillCarryContent = WillCarryContent; objCategory.HSNCode = ServiceOrGoods.Trim().ToUpper() == "G" ? HsnSacCode : ""; objCategory.SACCode = ServiceOrGoods.Trim().ToUpper() == "S" ? HsnSacCode : ""; objCategory.IsActive = IsActive.Trim().ToUpper() == "Y"; objCategory.IsExpenseType = IsExpenseType.Trim().ToUpper() == "Y"; if (iGstSvc.Save_Category(isOnlyDelete.Trim().ToUpper() == "Y", objCategory, ((UserInfo)Session["UserDetails"]).UserCode, out ErrorMessage)) { System.Web.HttpContext.Current.Application["Category"] = null; return(Json("Ok", JsonRequestBehavior.AllowGet)); } } return(Json(ErrorMessage, JsonRequestBehavior.AllowGet)); }
public ActionResult Save_Bank(string isOnlyDelete, string OrganizaionName, string BankId, string BankName, string CorpID, string Address, string IFSCCOde, string MCRCode, string IsActive) { if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)Session["UserDetails"]).OrganizationCode != null) { OrganizaionName = ((UserInfo)Session["UserDetails"]).OrganizationCode.Trim(); } using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { BankInfo objBank = new BankInfo(); objBank.BankID = BankId; objBank.Name = BankName; objBank.CorpID = CorpID; objBank.IFSCCode = IFSCCOde; objBank.MCRCode = MCRCode; objBank.Address = Address; objBank.OrganizationCode = OrganizaionName; objBank.IsActive = IsActive.Trim().ToUpper() == "Y"; if (iGstSvc.Save_Bank(isOnlyDelete.Trim().ToUpper() == "Y", objBank, ((UserInfo)Session["UserDetails"]), out ErrorMessage)) { return(Json("Ok", JsonRequestBehavior.AllowGet)); } } return(Json(ErrorMessage, JsonRequestBehavior.AllowGet)); }
public ActionResult Save_Branch(string isOnlyDelete, string OrganizationCode, string BranchId, string BranchName, string Street1, string Street2, string City, string State, string Country, string PIN, string IsMainBranch, string IsActive) { if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)Session["UserDetails"]).OrganizationCode != null) { OrganizationCode = ((UserInfo)Session["UserDetails"]).OrganizationCode.Trim(); } using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { BranchInfo objBranch = new BranchInfo(); objBranch.BranchID = BranchId; objBranch.BranchName = BranchName; objBranch.Street1 = Street1; objBranch.Street2 = Street2; objBranch.City = City; objBranch.State = State; objBranch.Country = Country; objBranch.PIN = PIN; objBranch.IsMainBranch = IsMainBranch; objBranch.OrganizationCode = OrganizationCode; objBranch.IsActive = IsActive.Trim().ToUpper() == "Y"; if (iGstSvc.Save_Branch(isOnlyDelete.Trim().ToUpper() == "Y", objBranch, ((UserInfo)Session["UserDetails"]), out ErrorMessage)) { return(Json("Ok", JsonRequestBehavior.AllowGet)); } } return(Json(ErrorMessage, JsonRequestBehavior.AllowGet)); }
public ActionResult GetDetails_Language(string LanguageID) { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { return(PartialView("~/Views/MasterPages/LanguageDetails.cshtml", iGstSvc.GetDetails_Language(LanguageID, "", true))); } }
public ActionResult GetStatesByCountryId(string countryId) { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { return(Json(iGstSvc.GetList_State(countryId), JsonRequestBehavior.AllowGet)); } }
public ActionResult Save_BankTransaction(string isOnlyDelete, string OrganizationCode, string Id, string Products, string CustomerId, string IsSellExpense, string Tax, string IsActive) { if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)Session["UserDetails"]).OrganizationCode != null) { OrganizationCode = ((UserInfo)Session["UserDetails"]).OrganizationCode.Trim(); } using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { BankTransactionInfo objBank = new BankTransactionInfo(); objBank.Id = Id; objBank.ProductIds = Products; objBank.CustomerId = CustomerId; objBank.Tax = Tax; objBank.IsSellExpense = IsSellExpense; objBank.OrganizationCode = OrganizationCode; objBank.IsActive = IsActive.Trim().ToUpper() == "Y"; if (iGstSvc.Save_BankTransaction(isOnlyDelete.Trim().ToUpper() == "Y", objBank, ((UserInfo)Session["UserDetails"]), out ErrorMessage)) { return(Json("Ok", JsonRequestBehavior.AllowGet)); } } return(Json(ErrorMessage, JsonRequestBehavior.AllowGet)); }
public ActionResult Save_Terms(string isDelete, string isActive, string TermsID, string Name, string DueInFixedNumberDays, string DueInCertainDayOfMonth, string DueInNextMonth, string Discount) { string OrganizationCode = ""; if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)Session["UserDetails"]).OrganizationCode != null) { OrganizationCode = ((UserInfo)Session["UserDetails"]).OrganizationCode.Trim(); } using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { TermsInfo objTermsInfo = new TermsInfo(); objTermsInfo.Id = TermsID; objTermsInfo.Name = Name; objTermsInfo.IsActive = isActive == "Y"; objTermsInfo.OrganizationCode = OrganizationCode; objTermsInfo.DueInFixedNumberDays = DueInFixedNumberDays; objTermsInfo.DueInFixedNumberDays = DueInFixedNumberDays; objTermsInfo.DueInNextMonth = DueInNextMonth; objTermsInfo.Discount = Discount; if (iGstSvc.Save_Terms(isDelete == "Y", objTermsInfo, (UserInfo)Session["UserDetails"], out ErrorMessage)) { return(Json("Ok", JsonRequestBehavior.AllowGet)); } } return(Json(ErrorMessage, JsonRequestBehavior.AllowGet)); }
public ActionResult GetDetails_DataValueLanguageWise(string LanguageIds, string MasterTablePrefixs) { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { return(PartialView("~/Views/MasterPages/LanguageDataValueDetails.cshtml", iGstSvc.GetList_DataValueLanguageWise(MasterTablePrefixs, LanguageIds, true))); } }
public ActionResult GetDetails_ServiceClass(string ServiceClassID) { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { return(PartialView("~/Views/MasterPages/ServiceClassDetails.cshtml", iGstSvc.GetDetails_ServiceClass(ServiceClassID, "", true))); } }
public ActionResult Save_Settings(string an_AlertText_GSTDate, string an_AlertText_PaidMembership, string an_isAllowedAlert_GSTDate, string an_isAllowedAlert_PaidMembership, string c_isAllowedMultyLanguage, string InfoType, string mc_CurrencyList, string mc_isAllowedMutyCurrency, string OrganizationCode, string p_BankAccountHolder, string p_BankAccountIBankName, string p_BankAccountIBranchName, string p_BankAccountIFSCCode, string p_BankAccountIMCRCode, string p_BankAccountNumber, string p_isAllowedOnlinePayment, string p_PaypalAccountID, string CompanyName, string Email, string Mobile, string Address, string City, string State, string Country, string Website, string CIN, string PAN, string DefaultEmail, string SMTP) { if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)Session["UserDetails"]).OrganizationCode != null) { OrganizationCode = ((UserInfo)Session["UserDetails"]).OrganizationCode.Trim(); } using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { SettingsInfo objSettings = new SettingsInfo(); objSettings.an_AlertText_GSTDate = an_AlertText_GSTDate; objSettings.an_AlertText_PaidMembership = an_AlertText_PaidMembership; objSettings.an_isAllowedAlert_GSTDate = an_isAllowedAlert_GSTDate.Trim().ToUpper() == "Y"; objSettings.an_isAllowedAlert_PaidMembership = an_isAllowedAlert_PaidMembership.Trim().ToUpper() == "Y"; objSettings.c_isAllowedMultyLanguage = c_isAllowedMultyLanguage.Trim().ToUpper() == "Y"; objSettings.InfoType = InfoType; objSettings.mc_CurrencyList = mc_CurrencyList; objSettings.mc_isAllowedMutyCurrency = mc_isAllowedMutyCurrency.Trim().ToUpper() == "Y"; objSettings.OrganizationCode = OrganizationCode; objSettings.p_BankAccountHolder = p_BankAccountHolder; objSettings.p_BankAccountIBankName = p_BankAccountIBankName; objSettings.p_BankAccountIBranchName = p_BankAccountIBranchName; objSettings.p_BankAccountIFSCCode = p_BankAccountIFSCCode; objSettings.p_BankAccountIMCRCode = p_BankAccountIMCRCode; objSettings.p_BankAccountNumber = p_BankAccountNumber; objSettings.p_isAllowedOnlinePayment = p_isAllowedOnlinePayment.Trim().ToUpper() == "Y"; objSettings.p_PaypalAccountID = p_PaypalAccountID; objSettings.c_CompanyName = CompanyName; objSettings.c_Email = Email; objSettings.c_Mobile = Mobile; objSettings.c_Address = Address; objSettings.c_City = City; objSettings.c_State = State; objSettings.c_Country = Country; objSettings.c_Website = Website; objSettings.c_SMTP = SMTP; objSettings.c_CIN = CIN; objSettings.c_PAN = PAN; objSettings.c_DefaultEmail = DefaultEmail; objSettings.c_SMTP = SMTP; if (iGstSvc.Save_Settings(false, objSettings, ((UserInfo)Session["UserDetails"]), out ErrorMessage)) { return(Json("Ok", JsonRequestBehavior.AllowGet)); } } return(Json(ErrorMessage, JsonRequestBehavior.AllowGet)); }
public ActionResult GetList_BankForDropdownlist(string OrganizationCode) { if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)Session["UserDetails"]).OrganizationCode != null) { OrganizationCode = ((UserInfo)Session["UserDetails"]).OrganizationCode.Trim(); } using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { return(Json(iGstSvc.GetList_Bank("", OrganizationCode, true), JsonRequestBehavior.AllowGet)); } }
public ActionResult GetList_BankTransaction(string OrganizationCode) { if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)Session["UserDetails"]).OrganizationCode != null) { OrganizationCode = ((UserInfo)Session["UserDetails"]).OrganizationCode.Trim(); } using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { return(View("~/Views/MasterPages/BankTransactionList.cshtml", iGstSvc.GetList_BankTransaction("", OrganizationCode, true))); } }
public ActionResult GetList_Category() { if (Session["Language"] == null) { Session["Language"] = 0; } using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { return(View("~/Views/MasterPages/CategoryList.cshtml", iGstSvc.GetList_Category("", "", "", "", true, "", Session["Language"].ToString()))); } }
public ActionResult GetDetails_Terms(string TermsID) { string OrganizationCode = ""; if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)Session["UserDetails"]).OrganizationCode != null) { OrganizationCode = ((UserInfo)Session["UserDetails"]).OrganizationCode.Trim(); } using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { return(PartialView("~/Views/MasterPages/TermsDetails.cshtml", iGstSvc.GetDetails_Terms(TermsID, OrganizationCode))); } }
public ActionResult GetDetails_Category(string CategoryID) { if (Session["Language"] == null) { Session["Language"] = 1; } using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { CategoryInfo obj = iGstSvc.GetDetails_Category(CategoryID, "", "", true, Session["Language"].ToString()); ViewBag.Countries = CommonMethods.ListCountry(obj.CountryId); return(PartialView("~/Views/MasterPages/CategoryDetails.cshtml", obj)); } }
public ActionResult GetList_CategoryForDropdownCountrywise(string CategoryID, string option, string CountryID) { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { if (Session["Language"] == null) { Session["Language"] = 0; } int d = 0; int.TryParse(CountryID, out d); return(Json(CommonMethods.ListCategory("", CountryID.ToString(), true), JsonRequestBehavior.AllowGet)); } }
public static string ListBanks(string SelectedOrganization, string SelectedItem) { List <BankInfo> Suppliers = null; System.Text.StringBuilder sbSupplierList = new System.Text.StringBuilder(); try { if (System.Web.HttpContext.Current.Session["UserDetails"] != null && ((UserInfo)System.Web.HttpContext.Current.Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)System.Web.HttpContext.Current.Session["UserDetails"]).OrganizationCode != null) { SelectedOrganization = ((UserInfo)System.Web.HttpContext.Current.Session["UserDetails"]).OrganizationCode.Trim(); } if (System.Web.HttpContext.Current.Session["Banks"] == null) { Suppliers = new Master_Svc.MasterServiceClient().GetList_Bank(SelectedItem, SelectedOrganization, true); System.Web.HttpContext.Current.Session["Banks"] = Suppliers; } else { Suppliers = (List <BankInfo>)System.Web.HttpContext.Current.Session["Banks"]; } } catch (Exception ex) { ErrorLog.LogErrors_Comments(ex.Message + ex.InnerException + ex.StackTrace, "Controler", "Organization ist", ""); Suppliers = new List <BankInfo>(); } sbSupplierList.AppendLine("<option value=\"\">Select one</option>"); if (Suppliers != null && Suppliers.Count > 0) { foreach (BankInfo country in Suppliers) { if (!string.IsNullOrEmpty(SelectedItem) && country.BankID.Trim() == SelectedItem.Trim()) { sbSupplierList.AppendLine("<option value=\"" + country.BankID + "\" selected=\"selected\">" + country.Name + "</option>"); } else { sbSupplierList.AppendLine("<option value=\"" + country.BankID + "\">" + country.Name + "</option>"); } } } return(sbSupplierList.ToString()); }
public ActionResult GetDetails_BankTransaction(string BankTransactionID, string OrganizationCode) { if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)Session["UserDetails"]).OrganizationCode != null) { OrganizationCode = ((UserInfo)Session["UserDetails"]).OrganizationCode.Trim(); } using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { BankTransactionInfo obj = iGstSvc.GetDetails_BankTransaction(BankTransactionID, OrganizationCode, true); ViewBag.OrganizationProducts = CommonMethods.ListOrganizationProducts(obj.OrganizationCode, obj.ProductIds); ViewBag.Customers = CommonMethods.ListCustomer(obj.OrganizationCode, obj.CustomerId); ViewBag.Banks = CommonMethods.ListBanks(obj.OrganizationCode, ""); return(PartialView("~/Views/MasterPages/BankTransactionDetails.cshtml", obj)); } }
public ActionResult GetList_LanguageDropdownList() { if (System.Web.HttpContext.Current.Application["LanguageList"] == null) { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { List <LanguageInfo> list = iGstSvc.GetList_Language("", "", true); System.Web.HttpContext.Current.Application["LanguageList"] = list; return(Json(list, JsonRequestBehavior.AllowGet)); } } else { return(Json((List <LanguageInfo>)System.Web.HttpContext.Current.Application["LanguageList"], JsonRequestBehavior.AllowGet)); } }
public ActionResult Save_ServiceClass(string isOnlyDelete, string ServiceClassId, string ServiceClassName, string IsActive) { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { ServiceClassInfo objServiceClass = new ServiceClassInfo(); objServiceClass.ServiceClassId = ServiceClassId; objServiceClass.ServiceClassName = ServiceClassName; objServiceClass.IsActive = IsActive.Trim().ToUpper() == "Y"; if (iGstSvc.Save_ServiceClass(isOnlyDelete.Trim().ToUpper() == "Y", objServiceClass, ((UserInfo)Session["UserDetails"]), out ErrorMessage)) { return(Json("Ok", JsonRequestBehavior.AllowGet)); } return(Json(ErrorMessage, JsonRequestBehavior.AllowGet)); } }
public ActionResult Save_Language(string isOnlyDelete, string LanguageId, string LanguageName, string IsActive) { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { LanguageInfo objLanguage = new LanguageInfo(); objLanguage.LanguageId = LanguageId; objLanguage.LanguageName = LanguageName; objLanguage.IsActive = IsActive.Trim().ToUpper() == "Y"; if (iGstSvc.Save_Language(isOnlyDelete.Trim().ToUpper() == "Y", objLanguage, ((UserInfo)Session["UserDetails"]), out ErrorMessage)) { return(Json("Ok", JsonRequestBehavior.AllowGet)); } return(Json(ErrorMessage, JsonRequestBehavior.AllowGet)); } }
public static string ListCategory(string isExpensive, string SelectedItem, string CountryID) { List <CategoryInfo> Suppliers = null; System.Text.StringBuilder sbSupplierList = new System.Text.StringBuilder(); int d = 0; int.TryParse(CountryID, out d); try { if (System.Web.HttpContext.Current.Application["Category"] == null) { Suppliers = new Master_Svc.MasterServiceClient().GetList_CategoryForDropdown(isExpensive, d, SelectedItem, "", ""); System.Web.HttpContext.Current.Application["Category"] = Suppliers; } else { Suppliers = (List <CategoryInfo>)System.Web.HttpContext.Current.Application["Category"]; } } catch (Exception ex) { ErrorLog.LogErrors_Comments(ex.Message + ex.InnerException + ex.StackTrace, "Controler", "Organization ist", ""); Suppliers = new List <CategoryInfo>(); } sbSupplierList.AppendLine("<option value=\"\">Select one</option>"); if (Suppliers != null && Suppliers.Count > 0) { foreach (CategoryInfo country in Suppliers) { if (!string.IsNullOrEmpty(SelectedItem) && country.CategoryId.Trim() == SelectedItem.Trim()) { sbSupplierList.AppendLine("<option value=\"" + country.CategoryId + "\" selected=\"selected\">" + country.CategoryName + "</option>"); } else { sbSupplierList.AppendLine("<option value=\"" + country.CategoryId + "\">" + country.CategoryName + "</option>"); } } } return(sbSupplierList.ToString()); }
public ActionResult GetList_ServiceTypeForDropdown() { if (System.Web.HttpContext.Current.Application["ServiceType"] == null) { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { if (Session["Language"] == null) { Session["Language"] = -1; } return(Json(iGstSvc.GetList_ServiceType("", "", true), JsonRequestBehavior.AllowGet)); } } return(Json(((List <ServiceTypeInfo>)System.Web.HttpContext.Current.Application["ServiceType"]), JsonRequestBehavior.AllowGet)); }
public ActionResult Save_LanguageCountry(string isOnlyDelete, string Id, string LanguageId, string CountryId, string Visibility, string Priority, string IsActive) { using (Master_Svc.MasterServiceClient iGstSvc = new Master_Svc.MasterServiceClient()) { LanguageCountryInfo objLanguage = new LanguageCountryInfo(); objLanguage.Id = Id == "" ? 0 : Convert.ToInt32(Id); objLanguage.LanguageId = LanguageId; objLanguage.CountryId = CountryId; objLanguage.Visibility = Visibility.Trim().ToUpper() == "Y"; objLanguage.Proirity = Priority == "" ? 0 : Convert.ToInt32(Priority); if (iGstSvc.Save_LanguageCountry(isOnlyDelete.Trim().ToUpper() == "Y", objLanguage, ((UserInfo)Session["UserDetails"]), out ErrorMessage)) { return(Json("Ok", JsonRequestBehavior.AllowGet)); } return(Json(ErrorMessage, JsonRequestBehavior.AllowGet)); } }