public static String LoadPagesMenu() { ClsLogistic cls = new ClsLogistic(); ClsData DataJSon = new ClsData(); return(DataJSon.fGetJson(cls.getMenuPages())); }
public static String LoadProfileMenu(string pProfile) { ClsLogistic user = new ClsLogistic(); ClsData data = new ClsData(); return(data.fGetJson(user.getMenuByProfile(pProfile))); }
public static String GetComboProfiles() { ClsLogistic user = new ClsLogistic(); ClsData data = new ClsData(); return(data.fGetJson(user.getComboProfile())); }
public static String GetThemeById(string pIdTheme) { ClsLogistic log = new ClsLogistic(); ClsData DataJSon = new ClsData(); return(DataJSon.fGetJson(log.getThemeById(pIdTheme))); }
public static String GetProfiles() { ClsLogistic user = new ClsLogistic(); ClsData DataJSon = new ClsData(); return(DataJSon.fGetJson(user.getComboProfileActive())); }
public static string GetGridDataDetail(string xWaiter) { clsLst lst = new clsLst(); ClsData data = new ClsData(); System.Data.DataTable dt = new System.Data.DataTable("data"); dt = lst.fgetWaiterDetail(xWaiter); return data.fGetJson(dt); }
public static String GetUser(String userName) { ClsLogistic log = new ClsLogistic(); ClsData DataJSon = new ClsData(); bool isAdmin = true; return(DataJSon.fGetJson(log.getUsers(isAdmin, userName))); }
public static String LoadMenu() { MembershipUser currentUser = Membership.GetUser(); string user = currentUser.UserName.ToString(); ClsLogistic cls = new ClsLogistic(); ClsData DataJSon = new ClsData(); return(DataJSon.fGetJson(cls.getMenu(user))); }
public static String GetGridData() { ClsLogistic log = new ClsLogistic(); ClsData DataJSon = new ClsData(); MembershipUser currentUser = Membership.GetUser(); string user = currentUser.UserName.ToString(); bool isAdmin = HttpContext.Current.Session["Profile"].ToString() == "1" ? false : true; return(DataJSon.fGetJson(log.getUsers(isAdmin, user))); }
public static string LoadCombos(string xType) { ClsRpt lst = new ClsRpt(); System.Data.DataTable dt = new System.Data.DataTable(); if (xType == "1") dt = lst.fgetProducts(); else if (xType == "2") dt = lst.fgetSuppliers(); ClsData data = new ClsData(); return data.fGetJson(dt); }
public static string getProductFind(string reference) { clsLst lst = new clsLst(); ClsData data = new ClsData(); if (lst.findProductByReference(reference).Rows.Count <= 0) { return "error"; } else { return data.fGetJson(lst.findProductByReference(reference)); } }
public static string getcomboCategory() { clsLst lst = new clsLst(); ClsData data = new ClsData(); return data.fGetJson(lst.comboProductCategory()); }
public static string getdataEntryDetail(int entryId) { clsLst lst = new clsLst(); ClsData data = new ClsData(); return data.fGetJson(lst.getProductEntryDetail(entryId)); }
public static String GetTables() { clsLst clsFront = new clsLst(); ClsData DataJSon = new ClsData(); return DataJSon.fGetJson(clsFront.GetTables()); }
public static string GetWaiters() { clsLst clsFront = new clsLst(); ClsData DataJSon = new ClsData(); return DataJSon.fGetJson(clsFront.fgetWaiters()); }
public static string GetTableAviables(int tableid) { clsLst clsFront = new clsLst(); ClsData DataJSon = new ClsData(); return DataJSon.fGetJson(clsFront.getTablesAviables(tableid)); }
public static string GetProduct(int productid) { clsLst clsFront = new clsLst(); ClsData DataJSon = new ClsData(); return DataJSon.fGetJson(clsFront.getProductById(productid)); }
public static string GetData(String IniDate, String EndDate) { ClsRpt clsFront = new ClsRpt(); ClsData DataJSon = new ClsData(); return DataJSon.fGetJson(clsFront.fgetRptInvoices(IniDate,EndDate)); }
public static string GetInvoiceDetail(int invoiceid) { clsLst clsFront = new clsLst(); ClsData DataJSon = new ClsData(); return DataJSon.fGetJson(clsFront.getInvoiceDetail(invoiceid)); }
public static string getDataPayType() { clsLst lst = new clsLst(); ClsData data = new ClsData(); return data.fGetJson(lst.getdataPayType()); }
public static string GetGridData(string pWaiter, string pIniDate, string pEndDate) { ClsRpt lst = new ClsRpt(); ClsData data = new ClsData(); return data.fGetJson(lst.fgetRptWaiters(pWaiter, pIniDate, pEndDate)); }
public static string getSupplierTypePay(int id) { clsLst lst = new clsLst(); ClsData data = new ClsData(); return data.fGetJson(lst.comboSupplierPreferenceType()); }
public static String GetPartners() { clsLst clsFront = new clsLst(); ClsData DataJSon = new ClsData(); return DataJSon.fGetJson(clsFront.dataSuppliers()); }
public static string getcomboSupplier() { clsLst lst = new clsLst(); ClsData data = new ClsData(); return data.fGetJson(lst.comboSupplier()); }
public static string getInvoicesByTableId(int tableid) { clsLst lst = new clsLst(); ClsData data = new ClsData(); return data.fGetJson(lst.getInvoicesByTableId(tableid)); }
public static string GetProducts() { clsLst clsFront = new clsLst(); ClsData DataJSon = new ClsData(); return DataJSon.fGetJson(clsFront.dataProducts()); }
public static string GetGridData() { clsLst lst = new clsLst(); ClsData data = new ClsData(); return data.fGetJson(lst.fGetCloseDays()); }
public static string LoadCombos(string xType) { ClsRpt lst = new ClsRpt(); ClsData data = new ClsData(); return data.fGetJson(lst.fgetWaiters()); }
public static string GetGridData(string pProduct, string pSupplier, string pIniDate, string pEndDate) { ClsRpt lst = new ClsRpt(); ClsData data = new ClsData(); return data.fGetJson(lst.fgetRptProducts(pProduct,pSupplier,pIniDate, pEndDate)); }