Exemple #1
0
        public bool Validate()
        {
            var proxy  = new ServiceReferenceCheckList.CheckListClient();
            var result = proxy.Validate();

            proxy.Close();
            return(result);
        }
Exemple #2
0
        public int InsertMemo(int checkListPk, string remarks)
        {
            var proxy  = new ServiceReferenceCheckList.CheckListClient();
            var result = proxy.InsertMemo(checkListPk, remarks);

            proxy.Close();

            return(result);
        }
Exemple #3
0
        public string GetMemoBy(int checkListPk)
        {
            var proxy   = new ServiceReferenceCheckList.CheckListClient();
            var remarks = proxy.GetMemoBy(checkListPk);

            proxy.Close();

            return(remarks);
        }
Exemple #4
0
        public int GetImagePkBy(int checkListPk, bool isBasemap)
        {
            var proxy  = new ServiceReferenceCheckList.CheckListClient();
            var imagPk = proxy.GetImagePkBy(checkListPk, isBasemap);

            proxy.Close();

            return(imagPk);
        }
Exemple #5
0
        public int DeleteImageIsUseBy(int imagePk)
        {
            var proxy  = new ServiceReferenceCheckList.CheckListClient();
            var imagPk = proxy.UpdateImageIsUse(imagePk, false);

            proxy.Close();

            return(imagPk);
        }
Exemple #6
0
        public int InsertRequest(RequestVM _vm)
        {
            var proxy  = new ServiceReferenceCheckList.CheckListClient();
            var entity = RequestVM.CreateEntity(_vm);
            var result = proxy.InsertRequest(entity);

            proxy.Close();
            return(result);
        }
Exemple #7
0
        public int DeleteRequestBy(int checkListPk, int idx)
        {
            var proxy     = new ServiceReferenceCheckList.CheckListClient();
            var resultIdx = proxy.DeleteRequestBy(checkListPk, idx);

            proxy.Close();

            return(resultIdx);
        }
Exemple #8
0
        public int InsertCheckList(ILSValidatorVM vm)
        {
            var proxy  = new ServiceReferenceCheckList.CheckListClient();
            var entity = ILSValidatorVM.CreateEntity(vm);
            var result = proxy.InsertCheckList(entity);

            proxy.Close();
            return(result);
        }
Exemple #9
0
        public int DeleteLaneInfoBy(int landInfoPk)
        {
            var proxy = new ServiceReferenceCheckList.CheckListClient();
            // landInfoPk
            var result = proxy.DeleteLaneInfoBy(landInfoPk);

            proxy.Close();

            return(result);
        }
Exemple #10
0
        public int UpdateRequest(RequestVM _vm)
        {
            var proxy  = new ServiceReferenceCheckList.CheckListClient();
            var entity = new ServiceReferenceCheckList.REQUEST();

            Common.Helper.CopyProperties(_vm, entity);
            var result = proxy.UpdateRequest(entity);

            proxy.Close();
            return(result);
        }
Exemple #11
0
        public int UpdateLaneInfo(LaneInfoVM _vm)
        {
            var proxy  = new ServiceReferenceCheckList.CheckListClient();
            var entity = new ServiceReferenceCheckList.LANEINFO();

            Common.Helper.CopyProperties(_vm, entity);
            var result = proxy.UpdateLaneInfo(entity);

            proxy.Close();
            return(result);
        }
Exemple #12
0
        public bool UserCheck(UserVm userVm)
        {
            var proxy  = new ServiceReferenceCheckList.CheckListClient();
            var entity = new ServiceReferenceCheckList.USER();

            Common.Helper.CopyProperties(userVm, entity);
            var remarks = proxy.UserCheck(entity);

            proxy.Close();

            return(remarks);
        }
Exemple #13
0
        public IList <ILSValidatorVM> GetCheckListBy(Dictionary <string, string> filter)
        {
            //var proxy = new ServiceReferenceCheckList.CheckListClient();
            //var items = proxy.GetCheckList();
            var proxy = new ServiceReferenceCheckList.CheckListClient();
            var items = proxy.GetCheckListBy(filter);

            proxy.Close();

            var result = new List <ILSValidatorVM>();

            foreach (var x in items)
            {
                var item = ILSValidatorVM.Create(x);
                result.Add(item);
            }
            return(result);
        }
Exemple #14
0
        public RequestVM GetRequestBy(int checklistPk, int idx)
        {
            var proxy = new ServiceReferenceCheckList.CheckListClient();
            var item  = proxy.GetRequestBy(checklistPk, idx);

            proxy.Close();

            if (item == null)
            {
                return(null);
            }

            var result = new RequestVM();

            Common.Helper.CopyProperties(item, result);

            return(result);
        }