Exemple #1
0
        public string Update(string inputValue)
        {
            string InputValue = CXmlPara.CreatePara(inputValue);

            ServiceREF.InventoryService.CApplicationMessage message = iv_service.UpdateTransfer(InputValue);
            return(CJson.SerializeObject(message));
        }
Exemple #2
0
        public string UpdateCurrency(string InputValue)
        {
            string strInputValue = CreatePara(InputValue);

            ServiceREF.Cash.CApplicationMessage message = service.UpdateCurrency(strInputValue);
            return(CJson.SerializeObject(message));
        }
Exemple #3
0
        public string UpdateTransaction(string exAttribute)
        {
            string _inputValue = CXmlPara.CreatePara(exAttribute);

            ServiceREF.GeneralLedgerService.CApplicationMessage message = gl_service.UpdateTransaction(_inputValue);
            return(CJson.SerializeObject(message));
        }
Exemple #4
0
        public string GetCustomer(string InputValue)
        {
            string    strInputValue = CreatePara(InputValue);
            CCustomer customer      = service.GetCustomer(strInputValue);

            return(CJson.SerializeObject(customer));
        }
Exemple #5
0
        public string GetTransaction(string exAttribute)
        {
            string InputValue = CXmlPara.CreatePara(exAttribute);

            ServiceREF.GeneralLedgerService.CTransaction item = gl_service.GetTransaction(InputValue);
            return(CJson.SerializeObject(item));
        }
Exemple #6
0
        public string Update(string InputValue)
        {
            string strInputValue        = CreatePara(InputValue);
            CApplicationMessage message = service.UpdateItem(strInputValue);

            return(CJson.SerializeObject(message));
        }
Exemple #7
0
        public string GetCurrency(string InputValue)
        {
            string strInputValue = CreatePara(InputValue);

            ServiceREF.Cash.CCurrency message = service.GetCurrency(strInputValue);
            return(CJson.SerializeObject(message));
        }
Exemple #8
0
        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));
        }
Exemple #10
0
        public string GetCustomerList(string funcPara)
        {
            string       InputValue  = CreatePara(funcPara);
            COutputValue outputValue = new COutputValue();

            CCustomer[] list = service.GetCustomerList(InputValue, ref outputValue);
            return(CJson.SerializeObject(list));
        }
Exemple #11
0
        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));
        }
Exemple #12
0
 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));
 }
Exemple #13
0
        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));
        }
Exemple #14
0
        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));
            }
        }
Exemple #15
0
        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));
        }
Exemple #16
0
        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("[{}]");
        }
Exemple #17
0
        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("[{}]");
        }
Exemple #18
0
 protected string GetItem(ServiceREF.Cash.CCurrency item)
 {
     return(CJson.SerializeObject(item));
 }
Exemple #19
0
 public string UpdateItemGroup(string InputValue)
 {
     ServiceREF.InventoryService.CApplicationMessage message = service.UpdateInventoryItemGroup(InputValue);
     return(CJson.SerializeObject(message));
 }
Exemple #20
0
        public string GetItemGroup(string InputValue)
        {
            CItemGroup item = service.GetInventoryItemGroup(InputValue);

            return(CJson.SerializeObject(item));
        }
Exemple #21
0
        public string GetAsset(string InputValue)
        {
            CAsset customer = service.GetAsset(InputValue);

            return(CJson.SerializeObject(customer));
        }
Exemple #22
0
 public string UpdateTransaction(string inputValue)
 {
     ServiceREF.GeneralLedgerService.CApplicationMessage message = gl_service.UpdateTransaction(inputValue);
     return(CJson.SerializeObject(message));
 }
Exemple #23
0
        public string UpdateAsset(string InputValue)
        {
            CApplicationMessage message = service.UpdateAsset(InputValue);

            return(CJson.SerializeObject(message));
        }
Exemple #24
0
        public string UpdateTransaction(string input)
        {
            CApplicationMessage message = GLS.UpdateTransaction(input);

            return(CJson.SerializeObject(message));
        }
Exemple #25
0
 public string CreateTransaction(string Input)
 {
     ServiceREF.GeneralLedgerService.GeneralLedgerService GLS     = new ServiceREF.GeneralLedgerService.GeneralLedgerService();
     ServiceREF.GeneralLedgerService.CApplicationMessage  message = GLS.CreateTransaction(Input);
     return(CJson.SerializeObject(message));
 }