예제 #1
0
 public void TS_tjms2(Auth auth, Tobk request, Tobk_Logic Tobk_Logic, CommonResponse ecr, string[] token, string uri)
 {
     if (auth.AuthResult(token, uri))
     {
         if (uri.IndexOf("/Yoga/tjms2/confirm") > 0)
         {
             ecr.data.results = Tobk_Logic.confirm_tjms2(request);
         }
         else if (uri.IndexOf("/Yoga/tjms2/update") > 0)
         {
             ecr.data.results = Tobk_Logic.UpdateAll_tjms2(request);
         }
         else if (uri.IndexOf("/Yoga/tjms2/PickupTimeUpdate") > 0)
         {
             ecr.data.results = Tobk_Logic.updatePickupTime(request);
         }
         else if (uri.IndexOf("/Yoga/tjms2") > 0)
         {
             ecr.data.results = Tobk_Logic.Get_tjms2_List(request);
         }
         ecr.meta.code    = 200;
         ecr.meta.message = "OK";
     }
     else
     {
         ecr.meta.code    = 401;
         ecr.meta.message = "Unauthorized";
     }
 }
예제 #2
0
        public void TS_tjms2(Auth auth, Tobk request, Tobk_Logic Tobk_Logic, CommonResponse ecr, string[] token, string uri)
        {
            if (auth.AuthResult(token, uri))
            {
                if (uri.IndexOf("/tms/tjms2/confirm") > 0)
                {
                    ecr.data.results = Tobk_Logic.confirm_tjms2(request);
                }
                else if (uri.IndexOf("/tms/tjms2/update") > 0)
                {
                    ecr.data.results = Tobk_Logic.UpdateAll_tjms2(request);
                }
                else if (uri.IndexOf("/tms/tjms2/PickupTimeUpdate") > 0)
                {
                    ecr.data.results = Tobk_Logic.updatePickupTime(request);
                }
                else if (uri.IndexOf("/tms/tjms2") > 0)
                {
                    ecr.data.results = Tobk_Logic.Get_tjms2_List(request);
                }

                else if (uri.IndexOf("/tms/tjms5/update") > 0)
                {
                    ecr.data.results = Tobk_Logic.UpdateAll_tjms5(request);
                }
                else if (uri.IndexOf("/tms/tjms5/insert") > 0)
                {
                    ecr.data.results = Tobk_Logic.insert_tjms5(request);
                }
                else if (uri.IndexOf("/tms/tjms5/delete") > 0)
                {
                    ecr.data.results = Tobk_Logic.DeleteLineItem(request);
                }
                else if (uri.IndexOf("/tms/tjms5") > 0)
                {
                    ecr.data.results = Tobk_Logic.Get_tjms5_List(request);
                }
                else if (uri.IndexOf("/tms/Tovt1/EquipmentType") > 0)
                {
                    ecr.data.results = Tobk_Logic.Get_EquipmentType(request);
                }

                else if (uri.IndexOf("/tms/Tovt1") > 0)
                {
                    ecr.data.results = Tobk_Logic.list_Tovt1(request);
                }
                ecr.meta.code    = 200;
                ecr.meta.message = "OK";
            }
            else
            {
                ecr.meta.code    = 401;
                ecr.meta.message = "Unauthorized";
            }
        }