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()); }
}// 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)); }