private void SQDJLR_Load(object sender, EventArgs e) { ReadOrWritexml readOrWritexml = new ReadOrWritexml(); readOrWritexml.XmlFile = Tools.CADTools.GetSettingsFolder() + "自定义.xml"; richTextBox1.Text = readOrWritexml.ReadXml("//自定义申请登记的内容"); richTextBox2.Text = readOrWritexml.ReadXml("//登记原因"); }
private void ZDY_Load(object sender, EventArgs e) { ReadOrWritexml readOrWritexml = new ReadOrWritexml(); readOrWritexml.XmlFile = Tools.CADTools.GetSettingsFolder() + "自定义.xml"; textBox1.Text = readOrWritexml.ReadXml("//界址签章表自定义1"); textBox2.Text = readOrWritexml.ReadXml("//界址签章表自定义2"); textBox3.Text = readOrWritexml.ReadXml("//界址签章表自定义3"); }
private void FWDC_Load(object sender, EventArgs e) { ReadOrWritexml readOrWritexml = new ReadOrWritexml(); readOrWritexml.XmlFile = Tools.CADTools.GetSettingsFolder() + "自定义.xml"; DCRQ.Text = readOrWritexml.ReadXml("//房屋调查日期"); DCY.Text = readOrWritexml.ReadXml("//房屋调查员"); DCYJ.Text = readOrWritexml.ReadXml("//房屋调查意见"); //DCY.Text = readOrWritexml.ReadXml("//房屋竣工日期"); init(); }
private void TDZS_Load(object sender, EventArgs e) { string connectionString = Tools.Uitl.GetConnectionString(); //写连接字符串 string selstring = "SELECT * FROM DCB where DJH = '" + ATT.DJH + "'"; DataSet da_ZD = new DataSet(); //定义DataSet SqlDataAdapter DP = new SqlDataAdapter(); //初始化适配器 using (SqlConnection connection = new SqlConnection(connectionString)) { connection.Open(); DP = Tools.DataBasic.DCB_Initadapter(selstring, connectionString); DP.Fill(da_ZD, "DCB");//填充Dataset System.Data.DataTable TB_DCB = da_ZD.Tables["DCB"]; DataRow row = TB_DCB.Rows[0]; this.GY.Text = row["TDZ_JY"].ToString().Trim(); this.LF.Text = row["TDZ_LF"].ToString().Trim(); this.H.Text = ATT.DJH.Substring(6, 11); this.TDSYQR.Text = row["QLR"].ToString().Trim(); this.ZL.Text = row["TDZL"].ToString().Trim(); this.DH.Text = ATT.DJH.Substring(6, 11); this.TH.Text = row["TFH"].ToString().Trim(); this.YT.Text = row["SJYT"].ToString().Trim(); double qdjg = (double)row["FBZ2"]; if (qdjg < 0.0001) { this.QDJG.Text = "/"; } else { this.QDJG.Text = qdjg.ToString("0.000").Trim(); } this.SYQLX.Text = row["SYQLX"].ToString().Trim(); if (row["ZZRQ"].ToString().Trim() == "") { this.ZZRQ.Text = "/"; } else { this.ZZRQ.Text = row["ZZRQ"].ToString().Trim(); } double mj = (double)row["FZMJ"]; this.SYQMJ.Text = mj.ToString("0.00"); double dymj = (double)row["DYMJ"]; if (dymj < 0.01) { this.DYMJ.Text = "/"; } else { this.DYMJ.Text = dymj.ToString("0.000"); } double ftmj = (double)row["FTMJ"]; if (ftmj < 0.01) { this.FTMJ.Text = "/"; } else { this.FTMJ.Text = ftmj.ToString("0.000"); } this.FZRQ.Text = row["FZRQ"].ToString().Trim(); this.DJRQ.Text = row["FZRQ"].ToString().Trim(); this.JS.Text = row["GYQLRQK"].ToString() + "\n" + row["SM"].ToString(); ReadOrWritexml readOrWritexml = new ReadOrWritexml(); readOrWritexml.XmlFile = Tools.CADTools.GetSettingsFolder() + "自定义.xml"; if (row["TDZ_JY"].ToString().Trim() == "") { this.GY.Text = readOrWritexml.ReadXml("//集用"); } if (row["TDZ_LF"].ToString().Trim() == "") { this.LF.Text = readOrWritexml.ReadXml("//年份"); } if (row["FZRQ"].ToString().Trim() == "") { this.FZRQ.Text = DateTime.Now.ToLongDateString(); this.DJRQ.Text = DateTime.Now.ToLongDateString(); } this.RMZF.Text = readOrWritexml.ReadXml("//人民政府"); if (readOrWritexml.ReadXml("//上下偏离") != "") { this.SXPL.Value = Convert.ToDecimal(readOrWritexml.ReadXml("//上下偏离")); } else { this.SXPL.Value = 72; } if (readOrWritexml.ReadXml("//左右偏离") != "") { this.ZYPL.Value = Convert.ToDecimal(readOrWritexml.ReadXml("//左右偏离")); } else { this.ZYPL.Value = 30; } connection.Close(); } }
private void SHBPZ_Load(object sender, EventArgs e) { ReadOrWritexml readOrWritexml = new ReadOrWritexml(); readOrWritexml.XmlFile = Tools.CADTools.GetSettingsFolder() + "自定义.xml"; QSDCJS1.Text = readOrWritexml.ReadXml("//权属调查记事1"); DCYXM1.Text = readOrWritexml.ReadXml("//调查员姓名1"); if (readOrWritexml.ReadXml("//调查日期1") == "") { DCRQ1.Checked = false; } else { DCRQ1.Checked = true; DCRQ1.Text = readOrWritexml.ReadXml("//调查日期1"); } DJKZJS1.Text = readOrWritexml.ReadXml("//地籍测量记事1"); CLYXM1.Text = readOrWritexml.ReadXml("//测量员姓名1"); if (readOrWritexml.ReadXml("//测量日期1") == "") { CLRQ1.Checked = false; } else { CLRQ1.Checked = true; CLRQ1.Text = readOrWritexml.ReadXml("//测量日期1"); } DJDCJGSHYJ1.Text = readOrWritexml.ReadXml("//地籍调查结果审核意见1"); SHRXM1.Text = readOrWritexml.ReadXml("//审核人姓名1"); if (readOrWritexml.ReadXml("//审核日期1") == "") { SHRQ1.Checked = false; } else { SHRQ1.Checked = true; SHRQ1.Text = readOrWritexml.ReadXml("//审核日期1"); } if (readOrWritexml.ReadXml("//审核合格1") == "1") { SHHG1.Checked = true; } else { SHHG1.Checked = false; } QSDCJS2.Text = readOrWritexml.ReadXml("//权属调查记事2"); DCYXM2.Text = readOrWritexml.ReadXml("//调查员姓名2"); if (readOrWritexml.ReadXml("//调查日期2") == "") { DCRQ2.Checked = false; } else { DCRQ2.Checked = true; DCRQ2.Text = readOrWritexml.ReadXml("//调查日期2"); } DJKZJS2.Text = readOrWritexml.ReadXml("//地籍测量记事2"); CLYXM2.Text = readOrWritexml.ReadXml("//测量员姓名2"); if (readOrWritexml.ReadXml("//测量日期2") == "") { CLRQ2.Checked = false; } else { CLRQ2.Checked = true; CLRQ2.Text = readOrWritexml.ReadXml("//测量日期2"); } DJDCJGSHYJ2.Text = readOrWritexml.ReadXml("//地籍调查结果审核意见2"); SHRXM2.Text = readOrWritexml.ReadXml("//审核人姓名2"); if (readOrWritexml.ReadXml("//审核日期2") == "") { SHRQ2.Checked = false; } else { SHRQ2.Checked = true; SHRQ2.Text = readOrWritexml.ReadXml("//审核日期2"); } if (readOrWritexml.ReadXml("//审核合格2") == "1") { SHHG2.Checked = true; } else { SHHG2.Checked = false; } }
private void SBB_Load(object sender, EventArgs e) { ReadOrWritexml readOrWritexml = new ReadOrWritexml(); readOrWritexml.XmlFile = Tools.CADTools.GetSettingsFolder() + "自定义.xml"; ZZXM.Text = readOrWritexml.ReadXml("//组长姓名"); CMZYJ.Text = readOrWritexml.ReadXml("//村民组意见"); ZRXM.Text = readOrWritexml.ReadXml("//主任姓名"); CWHYJ.Text = readOrWritexml.ReadXml("//村委会意见"); KCR.Text = readOrWritexml.ReadXml("//勘察人"); XCKCYJ.Text = readOrWritexml.ReadXml("//现场勘察意见"); XZGHBMFZR.Text = readOrWritexml.ReadXml("//镇规划部门负责人"); XZGHBMYJ.Text = readOrWritexml.ReadXml("//镇规划部门意见"); XZJWFZR.Text = readOrWritexml.ReadXml("//县住建委规划负责人"); XZJWGHYJ.Text = readOrWritexml.ReadXml("//县住建委规划意见"); XZZFSPYJ.Text = readOrWritexml.ReadXml("//乡政府审批意见"); XGTBMSCR.Text = readOrWritexml.ReadXml("//县国土部门审查人"); XGTBMSCYJ.Text = readOrWritexml.ReadXml("//县国土部门审查意见"); XZFSCYJ.Text = readOrWritexml.ReadXml("//县政府审查意见"); SBB_BH.Text = readOrWritexml.ReadXml("//申报表编号"); SQLY.Text = readOrWritexml.ReadXml("//申请理由"); if (readOrWritexml.ReadXml("//村民组签字日期") != "") { CMZQZRQ.Checked = true; CMZQZRQ.Text = readOrWritexml.ReadXml("//村民组签字日期"); } else { CMZQZRQ.Checked = false; } if (readOrWritexml.ReadXml("//村委会签字日期") != "") { CWHQZRQ.Checked = true; CWHQZRQ.Text = readOrWritexml.ReadXml("//村民组签字日期"); } else { CWHQZRQ.Checked = false; } if (readOrWritexml.ReadXml("//现场勘察签字日期") != "") { KCRQ.Checked = true; KCRQ.Text = readOrWritexml.ReadXml("//现场勘察签字日期"); } else { KCRQ.Checked = false; } if (readOrWritexml.ReadXml("//镇规划部门签字日期") != "") { XZGHBMQZRQ.Checked = true; XZGHBMQZRQ.Text = readOrWritexml.ReadXml("//镇规划部门签字日期"); } else { XZGHBMQZRQ.Checked = false; } if (readOrWritexml.ReadXml("//县住建委签字日期") != "") { XZJWQZRQ.Checked = true; XZJWQZRQ.Text = readOrWritexml.ReadXml("//县住建委签字日期"); } else { XZJWQZRQ.Checked = false; } if (readOrWritexml.ReadXml("//乡政府签字日期") != "") { XZZFSPRQ.Checked = true; XZZFSPRQ.Text = readOrWritexml.ReadXml("//乡政府签字日期"); } else { XZZFSPRQ.Checked = false; } if (readOrWritexml.ReadXml("//县国土部门签字日期") != "") { XGTBMSCRQ.Checked = true; XGTBMSCRQ.Text = readOrWritexml.ReadXml("//县国土部门签字日期"); } else { XGTBMSCRQ.Checked = false; } if (readOrWritexml.ReadXml("//县政府签字日期") != "") { XZFSCRQ.Checked = true; XZFSCRQ.Text = readOrWritexml.ReadXml("//县政府签字日期"); } else { XZFSCRQ.Checked = false; } if (readOrWritexml.ReadXml("//申报表填表日期") != "") { SBB_TBRQ.Checked = true; SBB_TBRQ.Text = readOrWritexml.ReadXml("//申报表填表日期"); } else { SBB_TBRQ.Checked = false; } }
private void SPB_Load(object sender, EventArgs e) { ReadOrWritexml readOrWritexml = new ReadOrWritexml(); readOrWritexml.XmlFile = Tools.CADTools.GetSettingsFolder() + "自定义.xml"; CSYJ.Text = readOrWritexml.ReadXml("//国土资源行政主管部门初审意见"); CSSCR.Text = readOrWritexml.ReadXml("//审查人"); CSRTDDJSGZH.Text = readOrWritexml.ReadXml("//审查人土地登记上岗资格证号"); if (readOrWritexml.ReadXml("//审查日期") != "") { CSRJ.Checked = true; CSRJ.Text = readOrWritexml.ReadXml("//审查日期"); } else { CSRJ.Checked = false; } if (readOrWritexml.ReadXml("//初审合格") != "1") { CSHG.Checked = false; } else { CSHG.Checked = true; } SHYJ.Text = readOrWritexml.ReadXml("//国土资源行政主管部门审核意见"); SHFZR.Text = readOrWritexml.ReadXml("//审核负责人"); SHRTDDJSGZH.Text = readOrWritexml.ReadXml("//审核负责人土地登记上岗资格证号"); if (readOrWritexml.ReadXml("//审核日期") != "") { SHRQ_SPB.Checked = true; SHRQ_SPB.Text = readOrWritexml.ReadXml("//审核日期"); } else { SHRQ_SPB.Checked = false; } if (readOrWritexml.ReadXml("//审核通过") != "1") { SHTG.Checked = false; } else { SHTG.Checked = true; } PZYJ.Text = readOrWritexml.ReadXml("//人民政府批准意见"); PZR.Text = readOrWritexml.ReadXml("//批准人"); if (readOrWritexml.ReadXml("//政府批准日期") != "") { PZRQ.Checked = true; PZRQ.Text = readOrWritexml.ReadXml("//政府批准日期"); } else { PZRQ.Checked = false; } if (readOrWritexml.ReadXml("//通过批准") != "1") { PZTG.Checked = false; } else { PZTG.Checked = true; } SPBBZ.Text = readOrWritexml.ReadXml("//备注"); FZJS.Text = readOrWritexml.ReadXml("//土地证书记事"); }