public string GetGridCoreStock(int currPage, int NumberRowOfPage, string inputValue, int refType) { CSession session = new CSession(); int userId = session.UserID; string result = ""; // string InputValue = CXmlPara.CreatePara(inputValue); string InputValue = CXmlPara.CreatePara(new CPara[] { new CPara("PageIndex", currPage.ToString()), new CPara("RowsPerPage", NumberRowOfPage.ToString()), new CPara("RefType", refType.ToString()), }, inputValue ); string InputValue1 = string.Format("<InputValue PageIndex=\"{0}\" RowsPerPage=\"{1}\" UserID=\"{2}\" RefType=\"{3}\" {4}/>", currPage, NumberRowOfPage, 1, refType, inputValue); ServiceREF.InventoryService.COutputValue outputValue = new ServiceREF.InventoryService.COutputValue(); if (refType == 7) { CInward[] list = iv_service.GetInwardList(InputValue, ref outputValue); result = CGrid.ToJsonForHandle <CInward>(userId, 14, list, currPage, outputValue.TotalPage, outputValue.TotalRow); } else if (refType == 8) { COutward[] list = iv_service.GetOutwardList(InputValue, ref outputValue); result = CGrid.ToJsonForHandle <COutward>(userId, 14, list, currPage, outputValue.TotalPage, outputValue.TotalRow); } if (refType == 9) { CTransactionsStock[] list = iv_service.GetTransferList(InputValue, ref outputValue); result = CGrid.ToJsonForHandle <CTransactionsStock>(userId, 31, list, currPage, outputValue.TotalPage, outputValue.TotalRow); } return(result); }
public string GetGrid(int gridID, string instant, int currPage, int NumberRowOfPage, string exAttribute) { string InputValue = CXmlPara.CreatePara(new CPara[] { new CPara("PageIndex", currPage.ToString()), new CPara("NumberRowOfPage", NumberRowOfPage.ToString()) }, exAttribute ); switch (instant) { case "Customer": ServiceREF.CustomerService.COutputValue coutputValue = new ServiceREF.CustomerService.COutputValue(); ServiceREF.CustomerService.CCustomerGroup[] clist = customerService.GetCustomerGroupList(InputValue, ref coutputValue); return(CGrid.ToJsonForHandle <ServiceREF.CustomerService.CCustomerGroup>(0, gridID, clist, currPage, coutputValue.TotalPage, coutputValue.TotalRow)); case "Product": ServiceREF.InventoryService.COutputValue poutputValue = new ServiceREF.InventoryService.COutputValue(); ServiceREF.InventoryService.CItemGroup[] plist = inventoryService.GetInventoryItemGroupList(InputValue, ref poutputValue); return(CGrid.ToJsonForHandle <ServiceREF.InventoryService.CItemGroup>(0, gridID, plist, currPage, poutputValue.TotalPage, poutputValue.TotalRow)); case "Vendor": ServiceREF.VendorService.COutputValue vpageinfo = new ServiceREF.VendorService.COutputValue(); ServiceREF.VendorService.CVendorGroup[] vlist = vendorService.GetVendorGroupList(InputValue, ref vpageinfo); return(CGrid.ToJsonForHandle <ServiceREF.VendorService.CVendorGroup>(0, gridID, vlist, currPage, vpageinfo.TotalPage, vpageinfo.TotalRow)); } return("{}"); }
public string GetGrid(int currPage, int NumberRowOfPage, string inputValue, int refType) { CSession session = new CSession(); int userId = session.UserID; string result = ""; ServiceREF.InventoryService.COutputValue outputValue = new ServiceREF.InventoryService.COutputValue(); // string InputValue = string.Format("<InputValue PageIndex='{0}' RowsPerPage='{1}' UserID='{2}' {3}/>", currPage, NumberRowOfPage, 1, inputValue); string InputValue = CXmlPara.CreatePara(new CPara[] { new CPara("PageIndex", currPage.ToString()), new CPara("RowsPerPage", NumberRowOfPage.ToString()), }, inputValue ); if (refType == 7) { CInwardDetail[] list = iv_service.GetInwardDetailList(InputValue, ref outputValue); result = CGrid.ToJsonForHandle <CInwardDetail>(userId, 15, list, currPage, outputValue.TotalPage, outputValue.TotalRow); } else if (refType == 8) { COutwardDetail[] list = iv_service.GetOutwardDetailList(InputValue, ref outputValue); result = CGrid.ToJsonForHandle <COutwardDetail>(userId, 46, list, currPage, outputValue.TotalPage, outputValue.TotalRow); } else if (refType == 9) { CTransactionsStockDetails[] list = iv_service.GetTransferDetails(InputValue, ref outputValue); result = CGrid.ToJsonForHandle <CTransactionsStockDetails>(userId, 32, list, currPage, outputValue.TotalPage, outputValue.TotalRow); } return(result); }
public string GetGrid(int gridID, int currPage, int NumberRowOfPage, string exAttribute) { string InputValue = CXmlPara.CreatePara(new CPara[] { new CPara("PageIndex", currPage.ToString()), new CPara("NumberRowOfPage", NumberRowOfPage.ToString()) }, exAttribute ); ServiceREF.GeneralLedgerService.COutputValue outputValue = new ServiceREF.GeneralLedgerService.COutputValue(); ServiceREF.GeneralLedgerService.CTransactionDetail[] list = gl_service.GetTransactionDetail(InputValue); return(CGrid.ToJsonForHandle <ServiceREF.GeneralLedgerService.CTransactionDetail>(0, gridID, list, currPage, outputValue.TotalPage, outputValue.TotalRow)); }
public string GetGrid(int userId, string session, int currPage, int NumberRowOfPage, string exAttribute) { string InputValue = CXmlPara.CreatePara(new CPara[] { new CPara("PageIndex", currPage.ToString()), new CPara("RowsPerPage", NumberRowOfPage.ToString()), }, exAttribute ); COutputValue outputValue = new COutputValue(); CCustomer[] list = service.GetCustomerList(InputValue, ref outputValue); return(CGrid.ToJsonForHandle <CCustomer>(1, 6, list, currPage, outputValue.TotalPage, outputValue.TotalRow)); }
public string GetItems(int currPage, int NumberRowOfPage, string funcPara) { //string InputValue = string.Format("<InputValue PageIndex='{0}' RowsPerPage='{1}' {2}/>", currPage, NumberRowOfPage, inputValue); string InputValue = CXmlPara.CreatePara(new CPara[] { new CPara("PageIndex", currPage.ToString()), new CPara("RowsPerPage", NumberRowOfPage.ToString()), }, funcPara ); COutputValue pageinfo = new COutputValue(); CStock[] list = service.GetInventoryStockList(InputValue, ref pageinfo); return(CGrid.ToJsonForHandle <CStock>(1, 1, list, currPage, pageinfo.TotalPage, pageinfo.TotalRow)); }
public string GetGrid(int currPage, int NumberRowOfPage, string exAttribute) { string InputValue = CXmlPara.CreatePara(new CPara[] { new CPara("PageIndex", currPage.ToString()), new CPara("RowsPerPage", NumberRowOfPage.ToString()), }, exAttribute); COutputValue outputValue = new COutputValue(); CClientGroupConfig[] list = service.GetClientGroupConfig(InputValue, ref outputValue); int totalPage = outputValue.TotalPage; int totalRow = outputValue.TotalRow; return(CGrid.ToJsonForHandle <CClientGroupConfig>(1, 22, list, currPage, totalPage, totalRow)); }
public string GetItems(int userId, string session, int currPage, int NumberRowOfPage, string funcPara) { //string InputValue = string.Format("<InputValue PageIndex='{0}' RowsPerPage='{1}' {2} />", currPage, NumberRowOfPage, funcPara); string InputValue = CXmlPara.CreatePara(new CPara[] { new CPara("PageIndex", currPage.ToString()), new CPara("RowsPerPage", NumberRowOfPage.ToString()), }, funcPara ); COutputValue outputValue = new COutputValue(); CItems[] list = service.GetInventoryItemsList(InputValue, ref outputValue); return(CGrid.ToJsonForHandle <CItems>(1, 3, list, currPage, outputValue.TotalPage, outputValue.TotalRow)); }
public string GetGrid(int userId, string session, int currPage, int NumberRowOfPage, string funcPara) { string ret = ""; string InputValue = CXmlPara.CreatePara(new CPara[] { new CPara("PageIndex", currPage.ToString()), new CPara("RowsPerPage", NumberRowOfPage.ToString()), }, funcPara ); ServiceREF.Cash.COutputValue outputValue = new ServiceREF.Cash.COutputValue(); ServiceREF.Cash.CCurrency[] list = service.GetCurrencyList(InputValue, ref outputValue); ret = CGrid.ToJsonForHandle <ServiceREF.Cash.CCurrency>(1, 10, list, currPage, outputValue.TotalPage, outputValue.TotalRow); return(ret); }
public string GetGrid(int userId, string session, int currPage, int NumberRowOfPage, string funcPara) { StringBuilder ret = new StringBuilder(); string result = ""; string InputValue = CXmlPara.CreatePara(new CPara[] { new CPara("PageIndex", currPage.ToString()), new CPara("RowsPerPage", NumberRowOfPage.ToString()), }, funcPara ); COutputValue outputValue = new COutputValue(); CVendor[] list = service.GetVendorList(InputValue, ref outputValue); result = CGrid.ToJsonForHandle <CVendor>(userId, 7, list, currPage, outputValue.TotalPage, outputValue.TotalRow); return(result); }
public string GetGrid(int userId, string session, int currPage, int NumberRowOfPage, string funcPara) { string result = ""; //string InputValue = string.Format("<InputValue PageIndex='{0}' RowsPerPage='{1}' {2}/>", currPage, NumberRowOfPage, inputValue); string InputValue = CXmlPara.CreatePara(new CPara[] { new CPara("PageIndex", currPage.ToString()), new CPara("RowsPerPage", NumberRowOfPage.ToString()), }, funcPara ); COutputValue outputValue = new COutputValue(); CTax[] list = service.GetInventoryTaxList(InputValue, ref outputValue); result = CGrid.ToJsonForHandle <CTax>(userId, 5, list, currPage, outputValue.TotalPage, outputValue.TotalRow); return(result); }