Esempio n. 1
0
    public static String LoadPagesMenu()
    {
        ClsLogistic cls      = new ClsLogistic();
        ClsData     DataJSon = new ClsData();

        return(DataJSon.fGetJson(cls.getMenuPages()));
    }
Esempio n. 2
0
    public static String LoadProfileMenu(string pProfile)
    {
        ClsLogistic user = new ClsLogistic();
        ClsData     data = new ClsData();

        return(data.fGetJson(user.getMenuByProfile(pProfile)));
    }
Esempio n. 3
0
    public static String GetComboProfiles()
    {
        ClsLogistic user = new ClsLogistic();
        ClsData     data = new ClsData();

        return(data.fGetJson(user.getComboProfile()));
    }
Esempio n. 4
0
    public static String GetThemeById(string pIdTheme)
    {
        ClsLogistic log      = new ClsLogistic();
        ClsData     DataJSon = new ClsData();

        return(DataJSon.fGetJson(log.getThemeById(pIdTheme)));
    }
Esempio n. 5
0
    public static String GetProfiles()
    {
        ClsLogistic user     = new ClsLogistic();
        ClsData     DataJSon = new ClsData();

        return(DataJSon.fGetJson(user.getComboProfileActive()));
    }
Esempio n. 6
0
 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);
 }
Esempio n. 7
0
    public static String GetUser(String userName)
    {
        ClsLogistic log      = new ClsLogistic();
        ClsData     DataJSon = new ClsData();

        bool isAdmin = true;

        return(DataJSon.fGetJson(log.getUsers(isAdmin, userName)));
    }
Esempio n. 8
0
    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)));
    }
Esempio n. 9
0
    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)));
    }
Esempio n. 10
0
    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);
    }
Esempio n. 11
0
    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));
        }
    }
Esempio n. 12
0
 public static string getcomboCategory()
 {
     clsLst lst = new clsLst();
     ClsData data = new ClsData();
     return data.fGetJson(lst.comboProductCategory());
 }
Esempio n. 13
0
 public static string getdataEntryDetail(int entryId)
 {
     clsLst lst = new clsLst();
     ClsData data = new ClsData();
     return data.fGetJson(lst.getProductEntryDetail(entryId));
 }
Esempio n. 14
0
 public static String GetTables()
 {
     clsLst clsFront = new clsLst();
     ClsData DataJSon = new ClsData();
     return DataJSon.fGetJson(clsFront.GetTables());
 }
Esempio n. 15
0
 public static string GetWaiters()
 {
     clsLst clsFront = new clsLst();
     ClsData DataJSon = new ClsData();
     return DataJSon.fGetJson(clsFront.fgetWaiters());
 }
Esempio n. 16
0
 public static string GetTableAviables(int tableid)
 {
     clsLst clsFront = new clsLst();
     ClsData DataJSon = new ClsData();
     return DataJSon.fGetJson(clsFront.getTablesAviables(tableid));
 }
Esempio n. 17
0
 public static string GetProduct(int productid)
 {
     clsLst clsFront = new clsLst();
     ClsData DataJSon = new ClsData();
     return DataJSon.fGetJson(clsFront.getProductById(productid));
 }
Esempio n. 18
0
 public static string GetData(String IniDate, String EndDate)
 {
     ClsRpt clsFront = new ClsRpt();
     ClsData DataJSon = new ClsData();
     return DataJSon.fGetJson(clsFront.fgetRptInvoices(IniDate,EndDate));
 }
Esempio n. 19
0
 public static string GetInvoiceDetail(int invoiceid)
 {
     clsLst clsFront = new clsLst();
     ClsData DataJSon = new ClsData();
     return DataJSon.fGetJson(clsFront.getInvoiceDetail(invoiceid));
 }
Esempio n. 20
0
 public static string getDataPayType()
 {
     clsLst lst = new clsLst();
     ClsData data = new ClsData();
     return data.fGetJson(lst.getdataPayType());
 }
Esempio n. 21
0
 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));
 }
Esempio n. 22
0
 public static string getSupplierTypePay(int id)
 {
     clsLst lst = new clsLst();
     ClsData data = new ClsData();
     return data.fGetJson(lst.comboSupplierPreferenceType());
 }
Esempio n. 23
0
 public static String GetPartners()
 {
     clsLst clsFront = new clsLst();
     ClsData DataJSon = new ClsData();
     return DataJSon.fGetJson(clsFront.dataSuppliers());
 }
Esempio n. 24
0
 public static string getcomboSupplier()
 {
     clsLst lst = new clsLst();
     ClsData data = new ClsData();
     return data.fGetJson(lst.comboSupplier());
 }
Esempio n. 25
0
 public static string getInvoicesByTableId(int tableid)
 {
     clsLst lst = new clsLst();
     ClsData data = new ClsData();
        return data.fGetJson(lst.getInvoicesByTableId(tableid));
 }
Esempio n. 26
0
 public static string GetProducts()
 {
     clsLst clsFront = new clsLst();
     ClsData DataJSon = new ClsData();
     return DataJSon.fGetJson(clsFront.dataProducts());
 }
Esempio n. 27
0
 public static string GetGridData()
 {
     clsLst lst = new clsLst();
     ClsData data = new ClsData();
     return data.fGetJson(lst.fGetCloseDays());
 }
Esempio n. 28
0
 public static string LoadCombos(string xType)
 {
     ClsRpt lst = new ClsRpt();
     ClsData data = new ClsData();
     return data.fGetJson(lst.fgetWaiters());
 }
Esempio n. 29
0
 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));
 }