Exemple #1
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());
     FpUtility.Fp_DAL.CallApi call = new FpUtility.Fp_DAL.CallApi(dic);
     List<Fp_Model.Sample_Group> List = call.getdata<Fp_Model.Sample_Group>("SampleGroups");
     return List;
 }
Exemple #2
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());
     FpUtility.Fp_DAL.CallApi call = new FpUtility.Fp_DAL.CallApi(dic);
     List<Freezer> list = call.getdata<Freezer>("Freezers");
     return list;
 }
Exemple #3
0
 //{"Total":4,"Subdivisions":[{"id":2,"obj_id":2,"name":"层 1","access":0,"description":"层 1 Description","subdivisions":6,"boxes":0,"barcode_tag":"7000000002","rfid_tag":"355AB1CBC000007000000002"},{"id":51,"obj_id":51,"name":"层 2","access":0,"description":"层 2 Description","subdivisions":6,"boxes":0,"barcode_tag":"7000000051","rfid_tag":"355AB1CBC000007000000033"},{"id":100,"obj_id":100,"name":"层 3","access":0,"description":"层 3 Description","subdivisions":6,"boxes":0,"barcode_tag":"7000000100","rfid_tag":"355AB1CBC000007000000064"},{"id":149,"obj_id":149,"name":"层 4","access":0,"description":"层 4 Description","subdivisions":6,"boxes":0,"barcode_tag":"7000000149","rfid_tag":"355AB1CBC000007000000095"}]}
 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);
     FpUtility.Fp_DAL.CallApi call = new FpUtility.Fp_DAL.CallApi(dic);
     List<Fp_Model.Subdivision> List = call.getdata<Fp_Model.Subdivision>("Subdivisions");
     return List;
 }
Exemple #4
0
        /// <summary>
        /// 获取系统里里面的样本组
        /// </summary>
        /// <param name="up"></param>
        /// <returns></returns>
        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());
            FpUtility.Fp_DAL.CallApi     call = new FpUtility.Fp_DAL.CallApi(dic);
            List <Fp_Model.Sample_Group> List = call.getdata <Fp_Model.Sample_Group>("SampleGroups");

            return(List);
        }
Exemple #5
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");
     FpUtility.Fp_DAL.CallApi call = new FpUtility.Fp_DAL.CallApi(dic);
     List<Box> boxes = call.getdata<Box>("Boxes");
     return boxes;
 }
Exemple #6
0
        //{"Total":1,"Freezers":[{"id":1,"name":"001号冰箱","description":"001号冰箱","access":0,"subdivisions":4,"boxes":0,"barcode_tag":"7000000001","rfid_tag":"355AB1CBC000007000000001"}]}
        //获取冰箱结构
        /// <summary>
        /// 获取冰箱列表
        /// </summary>
        /// <param name="up"></param>
        /// <returns></returns>
        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());
            FpUtility.Fp_DAL.CallApi call = new FpUtility.Fp_DAL.CallApi(dic);
            List <Freezer>           list = call.getdata <Freezer>("Freezers");

            return(list);
        }
Exemple #7
0
        /// <summary>
        /// 根据ID获样本盒
        /// </summary>
        /// <param name="up"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        public static List <Box> GetAllBoxInfo(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.box_info.ToString());
            dic.Add("show_empty", "true");
            FpUtility.Fp_DAL.CallApi call = new FpUtility.Fp_DAL.CallApi(dic);
            List <Box> Box = call.getdata <Box>("box_info");

            return(Box);
        }
Exemple #8
0
        /// <summary>
        /// 修改盒子视图
        /// </summary>
        /// <param name="up"></param>
        /// <returns></returns>
        public static List <Box> Get_update_box_view(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.update_box_view.ToString());
            dic.Add("show_empty", "true");
            FpUtility.Fp_DAL.CallApi call = new FpUtility.Fp_DAL.CallApi(dic);
            List <Box> BoxType            = call.getdata <Box>("update_box_view");

            return(BoxType);
        }
Exemple #9
0
        //{"Total":4,"Subdivisions":[{"id":2,"obj_id":2,"name":"层 1","access":0,"description":"层 1 Description","subdivisions":6,"boxes":0,"barcode_tag":"7000000002","rfid_tag":"355AB1CBC000007000000002"},{"id":51,"obj_id":51,"name":"层 2","access":0,"description":"层 2 Description","subdivisions":6,"boxes":0,"barcode_tag":"7000000051","rfid_tag":"355AB1CBC000007000000033"},{"id":100,"obj_id":100,"name":"层 3","access":0,"description":"层 3 Description","subdivisions":6,"boxes":0,"barcode_tag":"7000000100","rfid_tag":"355AB1CBC000007000000064"},{"id":149,"obj_id":149,"name":"层 4","access":0,"description":"层 4 Description","subdivisions":6,"boxes":0,"barcode_tag":"7000000149","rfid_tag":"355AB1CBC000007000000095"}]}
        /// <summary>
        /// 根据样本ID返回样本的位置信息
        /// </summary>
        /// <param name="up"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        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);
            FpUtility.Fp_DAL.CallApi    call = new FpUtility.Fp_DAL.CallApi(dic);
            List <Fp_Model.Subdivision> List = call.getdata <Fp_Model.Subdivision>("Subdivisions");

            return(List);
        }