예제 #1
0
파일: Freezers.cs 프로젝트: aj-hc/SZY
 //{"Total":1,"Freezers":[{"id":1,"name":"001号冰箱","description":"001号冰箱","access":0,"subdivisions":4,"boxes":0,"barcode_tag":"7000000001","rfid_tag":"355AB1CBC000007000000001"}]}
 //获取冰箱结构
 public static List<Fp_Model.Freezer> GetAll(Fp_Common.UnameAndPwd up)
 {
     Dictionary<string, string> dic = new Dictionary<string, string>();
     dic.Add("username", up.UserName);
     dic.Add("password", up.PassWord);
     dic.Add("method", Fp_Common.FpMethod.freezers.ToString());
     FreezerProUtility.Fp_DAL.CallApi call = new FreezerProUtility.Fp_DAL.CallApi(dic);
     List<Freezer> list = call.getdata<Freezer>("Freezers");
     return list;
 }
예제 #2
0
파일: TestData.cs 프로젝트: aj-hc/SZY
 public static List<Fp_Model.Subdivision> GetAll(Fp_Common.UnameAndPwd up, string id)
 {
     Dictionary<string, string> dic = new Dictionary<string, string>();
     dic.Add("username", up.UserName);
     dic.Add("password", up.PassWord);
     dic.Add("method", Fp_Common.FpMethod.subdivisions.ToString());
     dic.Add("id", id);
     FreezerProUtility.Fp_DAL.CallApi call = new FreezerProUtility.Fp_DAL.CallApi(dic);
     List<Fp_Model.Subdivision> List = call.getdata<Fp_Model.Subdivision>("Subdivision");
     return List;
 }
예제 #3
0
        public static List <Fp_Model.Sample_Group> GetAll(Fp_Common.UnameAndPwd up)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic.Add("username", up.UserName);
            dic.Add("password", up.PassWord);
            dic.Add("method", Fp_Common.FpMethod.sample_groups.ToString());
            FreezerProUtility.Fp_DAL.CallApi call = new FreezerProUtility.Fp_DAL.CallApi(dic);
            List <Fp_Model.Sample_Group>     List = call.getdata <Fp_Model.Sample_Group>("SampleGroups");

            return(List);
        }
예제 #4
0
파일: Boxes.cs 프로젝트: aj-hc/SY
 public static List<Box> GetAll(Fp_Common.UnameAndPwd up, string id)
 {
     Dictionary<string, string> dic = new Dictionary<string, string>();
     dic.Add("username", up.UserName);
     dic.Add("password", up.PassWord);
     dic.Add("method", Fp_Common.FpMethod.boxes.ToString());
     dic.Add("id", id);
     dic.Add("show_empty", "true");
     FreezerProUtility.Fp_DAL.CallApi call = new FreezerProUtility.Fp_DAL.CallApi(dic);
     List<Box> boxes = call.getdata<Box>("Boxes");
     return boxes;
 }
예제 #5
0
        public static List <Fp_Model.Subdivision> GetAll(Fp_Common.UnameAndPwd up, string id)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic.Add("username", up.UserName);
            dic.Add("password", up.PassWord);
            dic.Add("method", Fp_Common.FpMethod.subdivisions.ToString());
            dic.Add("id", id);
            FreezerProUtility.Fp_DAL.CallApi call = new FreezerProUtility.Fp_DAL.CallApi(dic);
            List <Fp_Model.Subdivision>      List = call.getdata <Fp_Model.Subdivision>("Subdivision");

            return(List);
        }
예제 #6
0
        public static List <Box> GetAll(Fp_Common.UnameAndPwd up, string id)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic.Add("username", up.UserName);
            dic.Add("password", up.PassWord);
            dic.Add("method", Fp_Common.FpMethod.boxes.ToString());
            dic.Add("id", id);
            dic.Add("show_empty", "true");
            FreezerProUtility.Fp_DAL.CallApi call = new FreezerProUtility.Fp_DAL.CallApi(dic);
            List <Box> boxes = call.getdata <Box>("Boxes");

            return(boxes);
        }