Ejemplo n.º 1
0
        protected static string GetControls(string customControl)
        {
            StringBuilder ret        = new StringBuilder();
            string        InputValue = CXmlPara.CreatePara(new KeyValuePair <string, string>[]
            {
                new KeyValuePair <string, string>("CustomControl", customControl)
            });

            ServiceREF.CoreService.CoreService service = new ServiceREF.CoreService.CoreService();
            ServiceREF.CoreService.CControl[]  arrCtr  = service.GetControls(InputValue);
            ret.Append(CJson.SerializeObject(arrCtr));
            return(ret.ToString());
        }
Ejemplo n.º 2
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));
        }