public ActionResult WBInfoShow(string SLBH)
        {
            FCWebserviceBll bll = new FCWebserviceBll();
            WBQueryForm     wf  = bll.GetWBQueryFormBySlbh(SLBH);

            return(View(wf));
        }
예제 #2
0
        public EasyUIGridModel GetWBInfoResult(WBQueryForm form)
        {
            //string cfwbService = ConfigurationManager.AppSettings["FWCFAddress"].ToString();
            BDCSrvSoap     soap    = new BDCSrvSoapClient();
            DataSet        ds      = soap.SPF_WFZMCX(form.QLRXM, form.ZJHM, form.Address);
            IList <WBInfo> wbinfos = new List <WBInfo>();

            if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    WBInfo w = new WBInfo();
                    w.HouseID    = ds.Tables[0].Rows[i]["HouseID"].ToString();
                    w.BuildingID = ds.Tables[0].Rows[i]["BuildingID"].ToString();
                    w.ZL         = ds.Tables[0].Rows[i]["ZL"].ToString();
                    w.QLRMC      = ds.Tables[0].Rows[i]["QLRMC"].ToString();
                    w.ZJHM       = ds.Tables[0].Rows[i]["ZJHM"].ToString();
                    w.JZMJ       = Convert.ToDouble(ds.Tables[0].Rows[i]["JZMJ"]);
                    w.ContractNO = ds.Tables[0].Rows[i]["ContractNO"].ToString();
                    w.SignDate   = Convert.ToDateTime(ds.Tables[0].Rows[i]["SignDate"]);
                    wbinfos.Add(w);
                }
            }
            EasyUIGridModel ret = new EasyUIGridModel(0, wbinfos.Count, wbinfos);

            return(ret);
        }
        public ActionResult GetWBInfo(WBQueryForm form)
        {
            FCWebserviceBll bll = new FCWebserviceBll();

            return(Json(bll.GetWBInfoResult(form)));
        }