Exemplo n.º 1
0
        public string GetWorkingSectionDatas()
        {
            WorkingSectionService service = new WorkingSectionService();

            DataTable dt = service.GetWorkingSection();

            string[] column = { "ID", "ProductLineID", "Name", "Remarks" };
            string result = DataGridJsonParser.DataTableToJson(dt, column);

            return result;
        }
Exemplo n.º 2
0
        public string GetProductLineDatas()
        {
            WorkingSectionService service = new WorkingSectionService();
            DataTable dt = service.GetProductLine();

            string[] column = { "ID", "Name" };
            string result = ComboboxJsonParser.DataTableToJson(dt, column);

            //Context.Response.Write(result);

            return result;
        }