public string Update(string inputValue) { string InputValue = CXmlPara.CreatePara(inputValue); ServiceREF.InventoryService.CApplicationMessage message = iv_service.UpdateTransfer(InputValue); return(CJson.SerializeObject(message)); }
public string UpdateCurrency(string InputValue) { string strInputValue = CreatePara(InputValue); ServiceREF.Cash.CApplicationMessage message = service.UpdateCurrency(strInputValue); return(CJson.SerializeObject(message)); }
public string UpdateTransaction(string exAttribute) { string _inputValue = CXmlPara.CreatePara(exAttribute); ServiceREF.GeneralLedgerService.CApplicationMessage message = gl_service.UpdateTransaction(_inputValue); return(CJson.SerializeObject(message)); }
public string GetCustomer(string InputValue) { string strInputValue = CreatePara(InputValue); CCustomer customer = service.GetCustomer(strInputValue); return(CJson.SerializeObject(customer)); }
public string GetTransaction(string exAttribute) { string InputValue = CXmlPara.CreatePara(exAttribute); ServiceREF.GeneralLedgerService.CTransaction item = gl_service.GetTransaction(InputValue); return(CJson.SerializeObject(item)); }
public string Update(string InputValue) { string strInputValue = CreatePara(InputValue); CApplicationMessage message = service.UpdateItem(strInputValue); return(CJson.SerializeObject(message)); }
public string GetCurrency(string InputValue) { string strInputValue = CreatePara(InputValue); ServiceREF.Cash.CCurrency message = service.GetCurrency(strInputValue); return(CJson.SerializeObject(message)); }
public string GetObjectName(string exAttribute, string inputType) { string ret = ""; string InputValue = CXmlPara.CreatePara(new CPara[] { }, exAttribute); switch (inputType) { case "1": ServiceREF.CustomerService.CustomerService cus_service = new ServiceREF.CustomerService.CustomerService(); ServiceREF.CustomerService.CCustomer cus = cus_service.GetCustomer(InputValue); ret = CJson.SerializeObject(cus); break; case "2": ServiceREF.VendorService.VendorService ven_service = new ServiceREF.VendorService.VendorService(); ServiceREF.VendorService.CVendor ven = ven_service.GetVendor(InputValue); ret = CJson.SerializeObject(ven); break; case "3": ServiceREF.GeneralLedgerService.CEmployee emp = gl_service.GetEmployee(InputValue); ret = CJson.SerializeObject(emp); break; } return(ret); }
public static string GetPersonRole(string exAttribute) { string InputValue = CXmlPara.CreatePara(exAttribute); ServiceREF.CoreService.CPersonRole item = core_service.GetPersonRole(InputValue); return(CJson.SerializeObject(item)); }
public string GetCustomerList(string funcPara) { string InputValue = CreatePara(funcPara); COutputValue outputValue = new COutputValue(); CCustomer[] list = service.GetCustomerList(InputValue, ref outputValue); return(CJson.SerializeObject(list)); }
public string GetNextRefNo(string exAttribute) { string InputValue = CXmlPara.CreatePara(new CPara[] { new CPara("RefDate", DateTime.Now.ToString("yyyy-MM-dd")) }, exAttribute ); CRefNo refno = core_service.GetNextRefNo(InputValue); return(CJson.SerializeObject(refno)); }
public string Update(string InputValue, int refType) { ServiceREF.InventoryService.CApplicationMessage message = new ServiceREF.InventoryService.CApplicationMessage(); if (refType == 7) { message = iv_service.UpdateInward(InputValue); } else if (refType == 8) { message = iv_service.UpdateOutward(InputValue); } return(CJson.SerializeObject(message)); }
public string GetNextRefNo(string pRefType) { pRefType = pRefType == "" ? "4" : pRefType; string InputValue = CXmlPara.CreatePara(new CPara[] { new CPara("RefDate", DateTime.Now.ToString("yyyy-MM-dd")), new CPara("RefType", pRefType) }, "" ); CRefNo refno = core_service.GetNextRefNo(InputValue); return(CJson.SerializeObject(refno)); }
public string GetInwardStock(string exAttribute, int refType) { string InputValue = CXmlPara.CreatePara(exAttribute); if (refType == 7) { CInward inward = iv_service.GetInward(InputValue); return(CJson.SerializeObject(inward)); } else { COutward outward = iv_service.GetOutward(InputValue); return(CJson.SerializeObject(outward)); } }
public string UnPost(string _inputValue, int refType) { string InputValue = CXmlPara.CreatePara(_inputValue); ServiceREF.InventoryService.CApplicationMessage message = new ServiceREF.InventoryService.CApplicationMessage(); if (refType == 7) { message = iv_service.UnPostInward(InputValue); } else if (refType == 8) { message = iv_service.UnPostOutward(InputValue); } return(CJson.SerializeObject(message)); }
public string GetItem(string funcPara, string instant) { string InputValue = CXmlPara.CreatePara(funcPara); switch (instant) { case "Customer": ServiceREF.CustomerService.CCustomerGroup customer = customerService.GetCustomerGroup(InputValue); return(CJson.SerializeObject(customer)); case "Product": ServiceREF.InventoryService.CItemGroup product = inventoryService.GetInventoryItemGroup(InputValue); return(CJson.SerializeObject(product)); case "Vendor": ServiceREF.VendorService.CVendorGroup vendor = vendorService.GetVendorGroup(InputValue); return(CJson.SerializeObject(vendor)); } return("[{}]"); }
public string UpdateAction(string funcPara, string instant) { string InputValue = CXmlPara.CreatePara(funcPara); switch (instant) { case "Customer": ServiceREF.CustomerService.CApplicationMessage cmessage = customerService.UpdateCustomerGroup(InputValue); return(CJson.SerializeObject(cmessage)); case "Product": ServiceREF.InventoryService.CApplicationMessage imessage = inventoryService.UpdateInventoryItemGroup(InputValue); return(CJson.SerializeObject(imessage)); case "Vendor": ServiceREF.VendorService.CApplicationMessage vmessage = vendorService.UpdateVendorGroup(InputValue); return(CJson.SerializeObject(vmessage)); } return("[{}]"); }
protected string GetItem(ServiceREF.Cash.CCurrency item) { return(CJson.SerializeObject(item)); }
public string UpdateItemGroup(string InputValue) { ServiceREF.InventoryService.CApplicationMessage message = service.UpdateInventoryItemGroup(InputValue); return(CJson.SerializeObject(message)); }
public string GetItemGroup(string InputValue) { CItemGroup item = service.GetInventoryItemGroup(InputValue); return(CJson.SerializeObject(item)); }
public string GetAsset(string InputValue) { CAsset customer = service.GetAsset(InputValue); return(CJson.SerializeObject(customer)); }
public string UpdateTransaction(string inputValue) { ServiceREF.GeneralLedgerService.CApplicationMessage message = gl_service.UpdateTransaction(inputValue); return(CJson.SerializeObject(message)); }
public string UpdateAsset(string InputValue) { CApplicationMessage message = service.UpdateAsset(InputValue); return(CJson.SerializeObject(message)); }
public string UpdateTransaction(string input) { CApplicationMessage message = GLS.UpdateTransaction(input); return(CJson.SerializeObject(message)); }
public string CreateTransaction(string Input) { ServiceREF.GeneralLedgerService.GeneralLedgerService GLS = new ServiceREF.GeneralLedgerService.GeneralLedgerService(); ServiceREF.GeneralLedgerService.CApplicationMessage message = GLS.CreateTransaction(Input); return(CJson.SerializeObject(message)); }