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; }
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; }