Exemplo n.º 1
0
 //{"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;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
Arquivo: Boxes.cs Projeto: 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;
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }