public HttpResponseMessage getCheckkcModel(string checkkcno)
        {
            CheckkcModel  model = new CheckkcModel();
            List <DBData> list  = CheckkcBO.getCheckkcModel(checkkcno);
            string        str   = "";
            string        str2  = "";
            string        str3  = "";
            string        str4  = "";
            string        str5  = "";

            if ((list != null) && (0 < list.Count))
            {
                str  = list[0]["ddate"].ToString();
                str2 = list[0]["storageno"].ToString();
                str3 = list[0]["storagename"].ToString();
                str4 = list[0]["checkmanname"].ToString();
                str5 = list[0]["mkername"].ToString();
            }
            else if ((checkkcno == null) || ("" == checkkcno))
            {
                checkkcno = "";
            }
            else
            {
                str3 = "盘点单据有误";
            }
            model.checkkcno    = checkkcno;
            model.ddate        = str;
            model.storageno    = str2;
            model.storagename  = str3;
            model.checkmanname = str4;
            model.mkername     = str5;
            return(model.toJson(model));
        }
        public HttpResponseMessage getCheckkcModelList()
        {
            CheckkcModel        model = new CheckkcModel();
            List <CheckkcModel> list  = new List <CheckkcModel>();
            List <DBData>       list2 = CheckkcBO.getCheckkcModel();

            foreach (DBData data in list2)
            {
                CheckkcModel item = new CheckkcModel {
                    checkkcno    = data["checkkcno"].ToString(),
                    ddate        = data["ddate"].ToString(),
                    storageno    = data["storageno"].ToString(),
                    storagename  = data["storagename"].ToString() + "(" + data["storageno"].ToString() + ")",
                    checkmanname = data["checkmanname"].ToString(),
                    mkername     = data["mkername"].ToString()
                };
                list.Add(item);
            }
            return(model.toJson(list));
        }