public bool Updatazt(Aisino.Fwkp.Hzfp.Model.HZFP_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.Hzfp.UpdateztSQD", this.dict) <= 0) { return(false); } return(true); } catch (BaseException exception) { ExceptionHandler.HandleError(exception); } catch (Exception exception2) { ExceptionHandler.HandleError(exception2); } return(false); }
public bool Insert(Aisino.Fwkp.Hzfp.Model.HZFP_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); string str = ToolUtil.FormatDateTimeEx(model.TKRQ.ToString("yyyy-MM-dd")); this.dict.Add("TKRQ", str); this.dict.Add("SSYF", model.SSYF); this.dict.Add("HJJE", model.HJJE); if (model.SL == -1.0) { this.dict.Add("SL", null); } else { this.dict.Add("SL", model.SL); } this.dict.Add("HJSE", model.HJSE); 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.Hzfp.InsertSQD", this.dict) <= 0) { return(false); } return(true); } catch (BaseException exception) { ExceptionHandler.HandleError(exception); } catch (Exception exception2) { ExceptionHandler.HandleError(exception2); } return(false); }
public Aisino.Fwkp.Hzfp.Model.HZFP_SQD Select(string SQDH) { try { this.dict.Clear(); this.dict.Add("SQDH", SQDH); ArrayList list = this.baseDao.querySQL("aisino.Fwkp.Hzfp.SelectSQD", this.dict); Aisino.Fwkp.Hzfp.Model.HZFP_SQD hzfp_sqd = new Aisino.Fwkp.Hzfp.Model.HZFP_SQD(); if (list.Count <= 0) { return(null); } this.dict = list[0] as Dictionary <string, object>; hzfp_sqd.FLBMBBBH = this.dict["FLBMBBBH"].ToString(); hzfp_sqd.SQDH = this.dict["SQDH"].ToString(); hzfp_sqd.FPDM = this.dict["FPDM"].ToString(); if (this.dict["FPHM"].ToString() != "") { hzfp_sqd.FPHM = int.Parse(this.dict["FPHM"].ToString()); } if (this.dict["KPJH"].ToString() != "") { hzfp_sqd.KPJH = int.Parse(this.dict["KPJH"].ToString()); } hzfp_sqd.FPZL = this.dict["FPZL"].ToString(); hzfp_sqd.GFMC = this.dict["GFMC"].ToString(); hzfp_sqd.GFSH = this.dict["GFSH"].ToString(); hzfp_sqd.XFMC = this.dict["XFMC"].ToString(); hzfp_sqd.XFSH = this.dict["XFSH"].ToString(); if (this.dict["TKRQ"].ToString() != "") { hzfp_sqd.TKRQ = DateTime.Parse(this.dict["TKRQ"].ToString()); } if (this.dict["HJJE"].ToString() != "") { hzfp_sqd.HJJE = decimal.Parse(this.dict["HJJE"].ToString()); } if (this.dict["SL"].ToString() != "") { hzfp_sqd.SL = double.Parse(this.dict["SL"].ToString()); } else { hzfp_sqd.SL = -1.0; } if (this.dict["HJSE"].ToString() != "") { hzfp_sqd.HJSE = decimal.Parse(this.dict["HJSE"].ToString()); } hzfp_sqd.JBR = this.dict["JBR"].ToString(); hzfp_sqd.SQXZ = this.dict["SQXZ"].ToString(); hzfp_sqd.SQLY = this.dict["SQLY"].ToString(); hzfp_sqd.SQRDH = this.dict["SQRDH"].ToString(); hzfp_sqd.YYSBZ = this.dict["YYSBZ"].ToString(); hzfp_sqd.REQNSRSBH = this.dict["REQNSRSBH"].ToString(); hzfp_sqd.JSPH = this.dict["JSPH"].ToString(); hzfp_sqd.XXBBH = this.dict["XXBBH"].ToString(); hzfp_sqd.XXBZT = this.dict["XXBZT"].ToString(); hzfp_sqd.XXBMS = this.dict["XXBMS"].ToString(); return(hzfp_sqd); } catch (BaseException exception) { ExceptionHandler.HandleError(exception); } catch (Exception exception2) { ExceptionHandler.HandleError(exception2); } return(null); }
public bool Updatazt(Aisino.Fwkp.Hzfp.Model.HZFP_SQD model) { return(this.dal.Updatazt(model)); }
public bool Insert(Aisino.Fwkp.Hzfp.Model.HZFP_SQD model) { return(this.dal.Insert(model)); }
protected override object[] doService(object[] param) { string sQDH = param[0].ToString(); IHZFP_SQD ihzfp_sqd = new Aisino.Fwkp.Hzfp.BLL.HZFP_SQD(); IHZFP_SQD_MX ihzfp_sqd_mx = new Aisino.Fwkp.Hzfp.BLL.HZFP_SQD_MX(); Aisino.Fwkp.Hzfp.Model.HZFP_SQD hzfp_sqd = ihzfp_sqd.Select(sQDH); DataTable table = ihzfp_sqd_mx.SelectList(sQDH); string str2 = hzfp_sqd.FPHM.ToString(); if (Convert.ToDouble(str2) != 0.0) { while (str2.Length < 8) { str2 = "0" + str2; } } Fpxx fpxx = new Fpxx(0, hzfp_sqd.FPDM, str2) { yysbz = hzfp_sqd.YYSBZ }; if (((Convert.ToString(hzfp_sqd.SL) == "0.05") || (Convert.ToString(hzfp_sqd.SL) == "0.050")) && (hzfp_sqd.YYSBZ.Trim().Substring(8, 1) == "0")) { fpxx.Zyfplx = (ZYFP_LX)1; } if (Convert.ToString(hzfp_sqd.SL) == "0.015") { fpxx.Zyfplx = (ZYFP_LX)10; } fpxx.kprq = hzfp_sqd.TKRQ.ToString(); fpxx.kpr = hzfp_sqd.JBR; fpxx.skr = hzfp_sqd.SQDH; fpxx.fhr = hzfp_sqd.SQXZ; fpxx.xfmc = hzfp_sqd.XFMC; fpxx.xfsh = hzfp_sqd.XFSH; fpxx.xfdzdh = hzfp_sqd.SQRDH; fpxx.gfmc = hzfp_sqd.GFMC; fpxx.gfsh = hzfp_sqd.GFSH; if (hzfp_sqd.XXBBH == null) { fpxx.hxm = ""; } else { fpxx.hxm = hzfp_sqd.XXBBH; } fpxx.je = hzfp_sqd.HJJE.ToString(); fpxx.se = hzfp_sqd.HJSE.ToString(); if (hzfp_sqd.SL == -1.0) { fpxx.sLv = ""; } else { fpxx.sLv = hzfp_sqd.SL.ToString(); } fpxx.Qdxx = new List <Dictionary <SPXX, string> >(); foreach (DataRow row in table.Rows) { double num = 0.0; num = GetSafeData.ObjectToDouble(row["DJ"].ToString()); Dictionary <SPXX, string> item = new Dictionary <SPXX, string>(); item[(SPXX)7] = row["JE"].ToString(); item[(SPXX)8] = row["SLV"].ToString(); item[(SPXX)9] = row["SE"].ToString(); item[(SPXX)2] = row["SPSM"].ToString(); item[(SPXX)0] = row["SPMC"].ToString(); item[(SPXX)3] = row["GGXH"].ToString(); item[(SPXX)4] = row["JLDW"].ToString(); item[(SPXX)6] = row["SL"].ToString(); if (num == 0.0) { item[(SPXX)5] = row["DJ"].ToString(); } else { item[(SPXX)5] = num.ToString(); } item[(SPXX)11] = (row["HSJBZ"].ToString().Trim() == "True") ? "1" : "0"; item[(SPXX)10] = row["FPHXZ"].ToString(); item[(SPXX)1] = (row["SPBH"] == null) ? "" : row["SPBH"].ToString(); item[(SPXX)14] = (row["XTHASH"] == null) ? "" : row["XTHASH"].ToString(); fpxx.Qdxx.Add(item); } return(new object[] { fpxx }); }