예제 #1
0
        public bool DeleteByCode(string strCode)
        {
            bool                 result  = false;
            IKhflbService        service = CreateSubClient();
            ICommunicationObject comm    = service as ICommunicationObject;

            comm.Using(client =>
            {
                result = service.DeleteByCode(strCode);
            });

            return(result);
        }
예제 #2
0
        ///// <summary>
        ///// 根据名称查找对象(自定义接口使用范例)
        ///// </summary>
        //public List<KhflbInfo> FindByName(string name)
        //{
        //    List<KhflbInfo> result = new List<KhflbInfo>();

        //    IKhflbService service = CreateSubClient();
        //    ICommunicationObject comm = service as ICommunicationObject;
        //    comm.Using(client =>
        //    {
        //        result = service.FindByName(name);
        //    });

        //    return result;
        //}

        public List <KhflbInfo> GetAllTree(string nodeType)
        {
            List <KhflbInfo>     result  = new List <KhflbInfo>();
            IKhflbService        service = CreateSubClient();
            ICommunicationObject comm    = service as ICommunicationObject;

            comm.Using(client =>
            {
                result = service.GetAllTree(nodeType);
            });

            return(result);
        }
예제 #3
0
        public List <KhflbInfo> GetKhflbByID(string parentcode)
        {
            List <KhflbInfo>     result  = new List <KhflbInfo>();
            IKhflbService        service = CreateSubClient();
            ICommunicationObject comm    = service as ICommunicationObject;

            comm.Using(client =>
            {
                result = service.GetKhflbByID(parentcode);
            });

            return(result);
        }
예제 #4
0
        public bool SaveExcelData(List <KhflbInfo> list)
        {
            bool                 result  = false;
            IKhflbService        service = CreateSubClient();
            ICommunicationObject comm    = service as ICommunicationObject;

            comm.Using(client =>
            {
                result = service.SaveExcelData(list);
            });

            return(result);
        }