private void SetYHZGFK(string ID)//加载隐患整改反馈信息 { GhtnTech.SEP.OraclDAL.DALGetYHINFO yh = new GhtnTech.SEP.OraclDAL.DALGetYHINFO(); DataTable dt = yh.GetNYHZGFKbyID(ID).Tables[0]; foreach (DataRow r in dt.Rows) { //---------------------****--------------------- //zfk_RecOpinion.Text = r.RecOpinion.Trim(); zfk_RecPersonID.Text = r["RECPERSON"].ToString().Trim(); zfk_RecTime.Text = Convert.ToDateTime(r["RECTIME"]).ToString("yyyy年MM月dd日"); zfk_RecState.Text = r["RECSTATE"].ToString().Trim(); zfk_yanshouName.Text = r["YANSHOUNAME"].ToString().Trim(); zfk_bc.Text = r["ZGBANCI"].ToString().Trim(); //zfk_ResponsibleID.Text = r.Responsible.Trim(); //------------------------------------------ } }
private void SetYHZG(string ID)//加载隐患整改信息 { GhtnTech.SEP.OraclDAL.DALGetYHINFO yh = new GhtnTech.SEP.OraclDAL.DALGetYHINFO(); DataTable dt = yh.GetNYHZGbyID(ID).Tables[0]; foreach (DataRow r in dt.Rows) { zg_Measures.Text = r["MEASURES"].ToString().Trim(); zg_Instructions.Text = r["INSTRUCTIONS"].ToString().Trim(); zg_PersonID.Text = r["RNAME"].ToString().Trim(); zg_zrdw.Text = r["DEPTNAME"].ToString().Trim(); zg_InstrTime.Text = Convert.ToDateTime(r["INSTRTIME"]).ToString("yyyy年MM月dd日"); //zg_IsFine.Text = r.IsFine.Value ? "是" : "否"; //---------------------****--------------------- zg_RecLimit.Text = Convert.ToDateTime(r["RECLIMIT"]).ToString("yyyy年MM月dd日"); // zg_BanCi.Text = r["BANCI"].ToString().Trim(); // //zg_ReviewLimit.Text = r.ReviewLimit.Value.ToString() + "天"; //------------------------------------------ } //var fine = dc.Nyhaction.Where(p => p.Yhputinid == Convert.ToInt32(ID)).Sum(f => f.Fine); //zg_IsFine.Text = Decimal.Round(fine.Value, 2).ToString() + "元"; }