Esempio n. 1
0
 public bool Updatazt(Aisino.Fwkp.HzfpHy.Model.HZFPHY_SQD model)
 {
     try
     {
         this.dict.Clear();
         this.dict.Add("SQDH", model.SQDH);
         this.dict.Add("XXBBH", model.XXBBH);
         this.dict.Add("XXBZT", model.XXBZT);
         this.dict.Add("XXBMS", model.XXBMS);
         if (this.baseDao.未确认DAO方法2_疑似updateSQL("aisino.Fwkp.HzfpHy.UpdateztSQD", this.dict) <= 0)
         {
             return(false);
         }
         return(true);
     }
     catch (BaseException exception)
     {
         ExceptionHandler.HandleError(exception);
     }
     catch (Exception exception2)
     {
         ExceptionHandler.HandleError(exception2);
     }
     return(false);
 }
Esempio n. 2
0
        protected override object[] doService(object[] param)
        {
            string         sQDH           = param[0].ToString();
            IHZFPHY_SQD    ihzfphy_sqd    = new Aisino.Fwkp.HzfpHy.BLL.HZFPHY_SQD();
            IHZFPHY_SQD_MX ihzfphy_sqd_mx = new Aisino.Fwkp.HzfpHy.BLL.HZFPHY_SQD_MX();

            Aisino.Fwkp.HzfpHy.Model.HZFPHY_SQD hzfphy_sqd = ihzfphy_sqd.Select(sQDH);
            DataTable table = ihzfphy_sqd_mx.SelectList(sQDH);
            Fpxx      fpxx  = new Fpxx((FPLX)11, hzfphy_sqd.FPDM, hzfphy_sqd.FPHM)
            {
                kprq   = hzfphy_sqd.TKRQ.ToString(),
                kpr    = hzfphy_sqd.JBR,
                skr    = hzfphy_sqd.SQDH,
                fhr    = hzfphy_sqd.SQXZ,
                xfmc   = hzfphy_sqd.XFMC,
                xfsh   = hzfphy_sqd.XFSH,
                xfdzdh = hzfphy_sqd.SQRDH,
                gfmc   = hzfphy_sqd.GFMC,
                gfsh   = hzfphy_sqd.GFSH
            };

            if (hzfphy_sqd.XXBBH == null)
            {
                fpxx.hxm = "";
            }
            else
            {
                fpxx.hxm = hzfphy_sqd.XXBBH;
            }
            fpxx.cyrmc     = hzfphy_sqd.XFMC;
            fpxx.cyrnsrsbh = hzfphy_sqd.XFSH;
            fpxx.spfmc     = hzfphy_sqd.GFMC;
            fpxx.spfnsrsbh = hzfphy_sqd.GFSH;
            fpxx.fhrmc     = hzfphy_sqd.FHFMC;
            fpxx.fhrnsrsbh = hzfphy_sqd.FHFSH;
            fpxx.shrmc     = hzfphy_sqd.SHFMC;
            fpxx.shrnsrsbh = hzfphy_sqd.SHFSH;
            fpxx.je        = hzfphy_sqd.HJJE.ToString();
            fpxx.se        = hzfphy_sqd.HJSE.ToString();
            fpxx.sLv       = hzfphy_sqd.SL.ToString();
            fpxx.kpjh      = hzfphy_sqd.KPJH;
            fpxx.jqbh      = hzfphy_sqd.JQBH;
            fpxx.czch      = hzfphy_sqd.CZCH;
            fpxx.ccdw      = hzfphy_sqd.CCDW;
            fpxx.yshwxx    = hzfphy_sqd.YSHWXX;
            fpxx.Qdxx      = new List <Dictionary <SPXX, string> >();
            foreach (DataRow row in table.Rows)
            {
                Dictionary <SPXX, string> item = new Dictionary <SPXX, string>();
                item[(SPXX)0]  = row["SPMC"].ToString();
                item[(SPXX)7]  = row["JE"].ToString();
                item[(SPXX)11] = row["HSJBZ"].ToString();
                item[(SPXX)10] = row["FPHXZ"].ToString();
                fpxx.Qdxx.Add(item);
            }
            return(new object[] { fpxx });
        }
Esempio n. 3
0
 public bool Insert(Aisino.Fwkp.HzfpHy.Model.HZFPHY_SQD model)
 {
     try
     {
         this.dict.Clear();
         this.dict.Add("FLBMBBBH", model.FLBMBBBH);
         this.dict.Add("SQDH", model.SQDH);
         this.dict.Add("FPZL", model.FPZL);
         this.dict.Add("FPDM", model.FPDM);
         this.dict.Add("FPHM", model.FPHM);
         this.dict.Add("KPJH", model.KPJH);
         this.dict.Add("GFMC", model.GFMC);
         this.dict.Add("GFSH", model.GFSH);
         this.dict.Add("XFMC", model.XFMC);
         this.dict.Add("XFSH", model.XFSH);
         this.dict.Add("FHRMC", model.FHFMC);
         this.dict.Add("FHRSH", model.FHFSH);
         this.dict.Add("SHRMC", model.SHFMC);
         this.dict.Add("SHRSH", model.SHFSH);
         this.dict.Add("TKRQ", model.TKRQ);
         this.dict.Add("SSYF", model.SSYF);
         this.dict.Add("HJJE", model.HJJE);
         this.dict.Add("SL", model.SL);
         this.dict.Add("HJSE", model.HJSE);
         this.dict.Add("YSHWXX", model.YSHWXX);
         this.dict.Add("JQBH", model.JQBH);
         this.dict.Add("CZCH", model.CZCH);
         this.dict.Add("CCDW", model.CCDW);
         this.dict.Add("JBR", model.JBR);
         this.dict.Add("SQXZ", model.SQXZ);
         this.dict.Add("SQLY", model.SQLY);
         this.dict.Add("SQRDH", model.SQRDH);
         this.dict.Add("BBBZ", model.BBBZ);
         this.dict.Add("YYSBZ", model.YYSBZ);
         this.dict.Add("REQNSRSBH", model.REQNSRSBH);
         this.dict.Add("JSPH", model.JSPH);
         this.dict.Add("XXBBH", model.XXBBH);
         this.dict.Add("XXBZT", model.XXBZT);
         this.dict.Add("XXBMS", model.XXBMS);
         if (this.baseDao.未确认DAO方法2_疑似updateSQL("aisino.Fwkp.HzfpHy.InsertSQD", this.dict) <= 0)
         {
             return(false);
         }
         return(true);
     }
     catch (BaseException exception)
     {
         ExceptionHandler.HandleError(exception);
     }
     catch (Exception exception2)
     {
         ExceptionHandler.HandleError(exception2);
     }
     return(false);
 }
Esempio n. 4
0
 public bool Updatazt(Aisino.Fwkp.HzfpHy.Model.HZFPHY_SQD model)
 {
     return(this.dal.Updatazt(model));
 }
Esempio n. 5
0
 public bool Insert(Aisino.Fwkp.HzfpHy.Model.HZFPHY_SQD model)
 {
     return(this.dal.Insert(model));
 }
Esempio n. 6
0
 public Aisino.Fwkp.HzfpHy.Model.HZFPHY_SQD Select(string SQDH)
 {
     try
     {
         this.dict.Clear();
         this.dict.Add("SQDH", SQDH);
         ArrayList list = this.baseDao.querySQL("aisino.Fwkp.HzfpHy.SelectSQD", this.dict);
         Aisino.Fwkp.HzfpHy.Model.HZFPHY_SQD hzfphy_sqd = new Aisino.Fwkp.HzfpHy.Model.HZFPHY_SQD();
         if (list.Count > 0)
         {
             this.dict           = list[0] as Dictionary <string, object>;
             hzfphy_sqd.FLBMBBBH = this.dict["FLBMBBBH"].ToString();
             hzfphy_sqd.SQDH     = this.dict["SQDH"].ToString();
             hzfphy_sqd.FPDM     = this.dict["FPDM"].ToString();
             if (this.dict["FPHM"].ToString() != "")
             {
                 hzfphy_sqd.FPHM = this.dict["FPHM"].ToString();
             }
             if (this.dict["KPJH"].ToString() != "")
             {
                 hzfphy_sqd.KPJH = int.Parse(this.dict["KPJH"].ToString());
             }
             hzfphy_sqd.FPZL  = this.dict["FPZL"].ToString();
             hzfphy_sqd.GFMC  = this.dict["GFMC"].ToString();
             hzfphy_sqd.GFSH  = this.dict["GFSH"].ToString();
             hzfphy_sqd.XFMC  = this.dict["XFMC"].ToString();
             hzfphy_sqd.XFSH  = this.dict["XFSH"].ToString();
             hzfphy_sqd.FHFMC = this.dict["FHRMC"].ToString();
             hzfphy_sqd.FHFSH = this.dict["FHRSH"].ToString();
             hzfphy_sqd.SHFMC = this.dict["SHRMC"].ToString();
             hzfphy_sqd.SHFSH = this.dict["SHRSH"].ToString();
             if (this.dict["TKRQ"].ToString() != "")
             {
                 hzfphy_sqd.TKRQ = DateTime.Parse(this.dict["TKRQ"].ToString());
             }
             if (this.dict["HJJE"].ToString() != "")
             {
                 hzfphy_sqd.HJJE = decimal.Parse(this.dict["HJJE"].ToString());
             }
             if (this.dict["SL"].ToString() != "")
             {
                 hzfphy_sqd.SL = double.Parse(this.dict["SL"].ToString());
             }
             if (this.dict["HJSE"].ToString() != "")
             {
                 hzfphy_sqd.HJSE = decimal.Parse(this.dict["HJSE"].ToString());
             }
             hzfphy_sqd.YSHWXX = this.dict["YSHWXX"].ToString();
             hzfphy_sqd.JQBH   = this.dict["JQBH"].ToString();
             hzfphy_sqd.CZCH   = this.dict["CZCH"].ToString();
             hzfphy_sqd.CCDW   = this.dict["CCDW"].ToString();
             hzfphy_sqd.JBR    = this.dict["JBR"].ToString();
             hzfphy_sqd.SQXZ   = this.dict["SQXZ"].ToString();
             hzfphy_sqd.YYSBZ  = this.dict["YYSBZ"].ToString();
             return(hzfphy_sqd);
         }
         return(null);
     }
     catch (BaseException exception)
     {
         ExceptionHandler.HandleError(exception);
     }
     catch (Exception exception2)
     {
         ExceptionHandler.HandleError(exception2);
     }
     return(null);
 }