コード例 #1
0
ファイル: CControlUI.cs プロジェクト: phinamcn03/ttdk
        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());
        }
コード例 #2
0
ファイル: CDropdownData.cs プロジェクト: phinamcn03/ttdk
        }//

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