Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            ReadOrWritexml readOrWritexml = new ReadOrWritexml();

            readOrWritexml.XmlFile = Tools.CADTools.GetSettingsFolder() + "自定义.xml";
            readOrWritexml.CreateXmlDocument("自定义申请登记的内容", richTextBox1.Text.Trim());
            readOrWritexml.CreateXmlDocument("自定义申请登记的内容", richTextBox1.Text.Trim());
            readOrWritexml.CreateXmlDocument("登记原因", richTextBox2.Text.Trim());
            this.Close();
        }
Example #2
0
File: FWDC.cs Project: 15831944/BDC
        private void DCRQ_Leave(object sender, EventArgs e)
        {
            ReadOrWritexml readOrWritexml = new ReadOrWritexml();

            readOrWritexml.XmlFile = Tools.CADTools.GetSettingsFolder() + "自定义.xml";
            readOrWritexml.CreateXmlDocument("房屋调查日期", DCRQ.Text.Trim());
        }
Example #3
0
        private void DY_Click(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];
                row["TDZ_JY"]  = this.GY.Text.Trim();
                row["TDZ_LF"]  = this.LF.Text.Trim();
                row["FZRQ"]    = this.FZRQ.Text.Trim();
                row["TDZSFDY"] = 1;
                double dymj = 0, fdmj = 0;
                try
                {
                    dymj        = Convert.ToDouble(this.DYMJ.Text.Trim());
                    fdmj        = Convert.ToDouble(this.FTMJ.Text.Trim());
                    row["DYMJ"] = dymj;
                    row["FTMJ"] = fdmj;
                }
                catch (System.Exception)
                {
                }

                try
                {
                    DP.Update(da_ZD, "DCB");
                }
                catch (System.Exception ee)
                {
                    MessageBox.Show(ee.Message, "安徽四院", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                    return;
                }
                connection.Close();
            }
            ReadOrWritexml readOrWritexml = new ReadOrWritexml();

            readOrWritexml.XmlFile = Tools.CADTools.GetSettingsFolder() + "自定义.xml";
            readOrWritexml.CreateXmlDocument("集用", this.GY.Text.Trim());
            readOrWritexml.CreateXmlDocument("年份", this.LF.Text.Trim());
            readOrWritexml.CreateXmlDocument("上下偏离", this.SXPL.Value.ToString().Trim());
            readOrWritexml.CreateXmlDocument("左右偏离", this.ZYPL.Value.ToString().Trim());
            readOrWritexml.CreateXmlDocument("人民政府", this.RMZF.Text.Trim());

            string flxfile1 = Tools.CADTools.GetReportsFolder() + "\\集体土地使用证模板.flx";

            grid1.OpenFile(flxfile1);
            grid1.Cell(2, 1).Text   = GY.Text.Trim();
            grid1.Cell(2, 4).Text   = LF.Text.Trim();
            grid1.Cell(1, 5).Text   = H.Text.Trim();
            grid1.Cell(4, 3).Text   = TDSYQR.Text.Trim();
            grid1.Cell(6, 3).Text   = ZL.Text.Trim();
            grid1.Cell(7, 3).Text   = DH.Text.Trim();
            grid1.Cell(7, 14).Text  = TH.Text.Trim();
            grid1.Cell(8, 3).Text   = YT.Text.Trim();
            grid1.Cell(8, 14).Text  = QDJG.Text.Trim();
            grid1.Cell(9, 3).Text   = SYQLX.Text.Trim();
            grid1.Cell(9, 14).Text  = ZZRQ.Text.Trim();
            grid1.Cell(10, 3).Text  = SYQMJ.Text.Trim();
            grid1.Cell(10, 14).Text = DYMJ.Text.Trim();
            grid1.Cell(11, 14).Text = FTMJ.Text.Trim();
            grid1.Cell(16, 7).Text  = RMZF.Text.Trim();
            DateTime fzdate = DateTime.Now;
            DateTime djdate = DateTime.Now;

            try
            {
                fzdate = Convert.ToDateTime(this.FZRQ.Text.Trim());
                djdate = Convert.ToDateTime(this.DJRQ.Text.Trim());
            }
            catch (Exception)
            {
                MessageBox.Show("日期格式错误!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }

            grid1.Cell(20, 8).Text  = fzdate.Year.ToString();
            grid1.Cell(20, 13).Text = fzdate.Month.ToString();
            grid1.Cell(20, 16).Text = fzdate.Day.ToString();

            grid1.Cell(17, 21).Text = djdate.Year.ToString();
            grid1.Cell(17, 23).Text = djdate.Month.ToString();
            grid1.Cell(17, 25).Text = djdate.Day.ToString();

            grid1.Cell(7, 21).Text = JS.Text;

            FlexCell.PageSetup pageSetup = grid1.PageSetup;

            pageSetup.TopMargin  = Decimal.ToSingle(SXPL.Value) / 10;
            pageSetup.LeftMargin = Decimal.ToSingle(ZYPL.Value) / 10;
            if (printDialog1.ShowDialog() == DialogResult.OK)
            {
                pageSetup.PrinterName = printDialog1.PrinterSettings.PrinterName;
                grid1.Print(1, 100, true);
            }
            this.Close();
        }
Example #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            ReadOrWritexml readOrWritexml = new ReadOrWritexml();

            readOrWritexml.XmlFile = Tools.CADTools.GetSettingsFolder() + "自定义.xml";
            readOrWritexml.CreateXmlDocument("权属调查记事1", QSDCJS1.Text);
            readOrWritexml.CreateXmlDocument("权属调查记事1", QSDCJS1.Text);
            readOrWritexml.CreateXmlDocument("调查员姓名1", DCYXM1.Text.Trim());
            if (DCRQ1.Checked)
            {
                readOrWritexml.CreateXmlDocument("调查日期1", DCRQ1.Text);
            }
            else
            {
                readOrWritexml.CreateXmlDocument("调查日期1", "");
            }
            readOrWritexml.CreateXmlDocument("地籍测量记事1", DJKZJS1.Text);
            readOrWritexml.CreateXmlDocument("测量员姓名1", CLYXM1.Text.Trim());
            if (CLRQ1.Checked)
            {
                readOrWritexml.CreateXmlDocument("测量日期1", CLRQ1.Text);
            }
            else
            {
                readOrWritexml.CreateXmlDocument("测量日期1", "");
            }
            readOrWritexml.CreateXmlDocument("地籍调查结果审核意见1", DJDCJGSHYJ1.Text);
            readOrWritexml.CreateXmlDocument("审核人姓名1", SHRXM1.Text.Trim());
            if (SHRQ1.Checked)
            {
                readOrWritexml.CreateXmlDocument("审核日期1", SHRQ1.Text);
            }
            else
            {
                readOrWritexml.CreateXmlDocument("审核日期1", "");
            }
            if (SHHG1.Checked)
            {
                readOrWritexml.CreateXmlDocument("审核合格1", "1");
            }
            else
            {
                readOrWritexml.CreateXmlDocument("审核合格1", "0");
            }

            readOrWritexml.CreateXmlDocument("权属调查记事2", QSDCJS2.Text);
            readOrWritexml.CreateXmlDocument("调查员姓名2", DCYXM2.Text.Trim());
            if (DCRQ2.Checked)
            {
                readOrWritexml.CreateXmlDocument("调查日期2", DCRQ2.Text);
            }
            else
            {
                readOrWritexml.CreateXmlDocument("调查日期2", "");
            }
            readOrWritexml.CreateXmlDocument("地籍测量记事2", DJKZJS2.Text);
            readOrWritexml.CreateXmlDocument("测量员姓名2", CLYXM2.Text.Trim());
            if (CLRQ2.Checked)
            {
                readOrWritexml.CreateXmlDocument("测量日期2", CLRQ2.Text);
            }
            else
            {
                readOrWritexml.CreateXmlDocument("测量日期2", "");
            }
            readOrWritexml.CreateXmlDocument("地籍调查结果审核意见2", DJDCJGSHYJ2.Text);
            readOrWritexml.CreateXmlDocument("审核人姓名2", SHRXM2.Text.Trim());
            if (SHRQ2.Checked)
            {
                readOrWritexml.CreateXmlDocument("审核日期2", SHRQ2.Text);
            }
            else
            {
                readOrWritexml.CreateXmlDocument("审核日期2", "");
            }
            if (SHHG2.Checked)
            {
                readOrWritexml.CreateXmlDocument("审核合格2", "1");
            }
            else
            {
                readOrWritexml.CreateXmlDocument("审核合格2", "0");
            }
            this.Close();
        }
Example #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            ReadOrWritexml readOrWritexml = new ReadOrWritexml();

            readOrWritexml.XmlFile = Tools.CADTools.GetSettingsFolder() + "自定义.xml";
            readOrWritexml.CreateXmlDocument("组长姓名", ZZXM.Text.Trim());
            readOrWritexml.CreateXmlDocument("组长姓名", ZZXM.Text.Trim());
            readOrWritexml.CreateXmlDocument("村民组意见", CMZYJ.Text);
            readOrWritexml.CreateXmlDocument("主任姓名", ZRXM.Text.Trim());
            readOrWritexml.CreateXmlDocument("村委会意见", CWHYJ.Text);
            readOrWritexml.CreateXmlDocument("勘察人", KCR.Text.Trim());
            readOrWritexml.CreateXmlDocument("现场勘察意见", XCKCYJ.Text);
            readOrWritexml.CreateXmlDocument("镇规划部门负责人", XZGHBMFZR.Text.Trim());
            readOrWritexml.CreateXmlDocument("镇规划部门意见", XZGHBMYJ.Text);
            readOrWritexml.CreateXmlDocument("县住建委规划负责人", XZJWFZR.Text.Trim());
            readOrWritexml.CreateXmlDocument("县住建委规划意见", XZJWGHYJ.Text);
            readOrWritexml.CreateXmlDocument("乡政府审批意见", XZZFSPYJ.Text);
            readOrWritexml.CreateXmlDocument("县国土部门审查人", XGTBMSCR.Text.Trim());
            readOrWritexml.CreateXmlDocument("县国土部门审查意见", XGTBMSCYJ.Text);
            readOrWritexml.CreateXmlDocument("县政府审查意见", XZFSCYJ.Text);
            readOrWritexml.CreateXmlDocument("申报表编号", SBB_BH.Text.Trim());
            readOrWritexml.CreateXmlDocument("申请理由", SQLY.Text);
            if (CMZQZRQ.Checked == true)
            {
                readOrWritexml.CreateXmlDocument("村民组签字日期", CMZQZRQ.Text.Trim());
            }
            else
            {
                readOrWritexml.CreateXmlDocument("村民组签字日期", "");
            }
            if (CWHQZRQ.Checked == true)
            {
                readOrWritexml.CreateXmlDocument("村委会签字日期", CWHQZRQ.Text.Trim());
            }
            else
            {
                readOrWritexml.CreateXmlDocument("村委会签字日期", "");
            }
            if (KCRQ.Checked == true)
            {
                readOrWritexml.CreateXmlDocument("现场勘察签字日期", KCRQ.Text.Trim());
            }
            else
            {
                readOrWritexml.CreateXmlDocument("现场勘察签字日期", "");
            }
            if (XZGHBMQZRQ.Checked == true)
            {
                readOrWritexml.CreateXmlDocument("镇规划部门签字日期", XZGHBMQZRQ.Text.Trim());
            }
            else
            {
                readOrWritexml.CreateXmlDocument("镇规划部门签字日期", "");
            }
            if (XZJWQZRQ.Checked == true)
            {
                readOrWritexml.CreateXmlDocument("县住建委签字日期", XZJWQZRQ.Text.Trim());
            }
            else
            {
                readOrWritexml.CreateXmlDocument("县住建委签字日期", "");
            }
            if (XZZFSPRQ.Checked == true)
            {
                readOrWritexml.CreateXmlDocument("乡政府签字日期", XZZFSPRQ.Text.Trim());
            }
            else
            {
                readOrWritexml.CreateXmlDocument("乡政府签字日期", "");
            }
            if (XGTBMSCRQ.Checked == true)
            {
                readOrWritexml.CreateXmlDocument("县国土部门签字日期", XGTBMSCRQ.Text.Trim());
            }
            else
            {
                readOrWritexml.CreateXmlDocument("县国土部门签字日期", "");
            }
            if (XZFSCRQ.Checked == true)
            {
                readOrWritexml.CreateXmlDocument("县政府签字日期", XZFSCRQ.Text.Trim());
            }
            else
            {
                readOrWritexml.CreateXmlDocument("县政府签字日期", "");
            }
            if (SBB_TBRQ.Checked == true)
            {
                readOrWritexml.CreateXmlDocument("申报表填表日期", SBB_TBRQ.Text.Trim());
            }
            else
            {
                readOrWritexml.CreateXmlDocument("申报表填表日期", "");
            }
            this.Close();
        }
Example #6
0
        private void button1_Click(object sender, EventArgs e)
        {
            ReadOrWritexml readOrWritexml = new ReadOrWritexml();

            readOrWritexml.XmlFile = Tools.CADTools.GetSettingsFolder() + "自定义.xml";
            readOrWritexml.CreateXmlDocument("国土资源行政主管部门初审意见", CSYJ.Text);
            readOrWritexml.CreateXmlDocument("国土资源行政主管部门初审意见", CSYJ.Text);
            readOrWritexml.CreateXmlDocument("审查人", CSSCR.Text.Trim());
            readOrWritexml.CreateXmlDocument("审查人土地登记上岗资格证号", CSRTDDJSGZH.Text.Trim());
            if (CSRJ.Checked)
            {
                readOrWritexml.CreateXmlDocument("审查日期", CSRJ.Text.Trim());
            }
            else
            {
                readOrWritexml.CreateXmlDocument("审查日期", "");
            }
            if (CSHG.Checked)
            {
                readOrWritexml.CreateXmlDocument("初审合格", "1");
            }
            else
            {
                readOrWritexml.CreateXmlDocument("初审合格", "0");
            }
            readOrWritexml.CreateXmlDocument("国土资源行政主管部门审核意见", SHYJ.Text);
            readOrWritexml.CreateXmlDocument("审核负责人", SHFZR.Text.Trim());
            readOrWritexml.CreateXmlDocument("审核负责人土地登记上岗资格证号", SHRTDDJSGZH.Text.Trim());
            if (SHRQ_SPB.Checked)
            {
                readOrWritexml.CreateXmlDocument("审核日期", SHRQ_SPB.Text.Trim());
            }
            else
            {
                readOrWritexml.CreateXmlDocument("审核日期", "");
            }
            if (SHTG.Checked)
            {
                readOrWritexml.CreateXmlDocument("审核通过", "1");
            }
            else
            {
                readOrWritexml.CreateXmlDocument("审核通过", "0");
            }
            readOrWritexml.CreateXmlDocument("人民政府批准意见", PZYJ.Text);
            readOrWritexml.CreateXmlDocument("批准人", PZR.Text.Trim());
            if (PZRQ.Checked)
            {
                readOrWritexml.CreateXmlDocument("政府批准日期", PZRQ.Text.Trim());
            }
            else
            {
                readOrWritexml.CreateXmlDocument("政府批准日期", "");
            }
            if (PZTG.Checked)
            {
                readOrWritexml.CreateXmlDocument("通过批准", "1");
            }
            else
            {
                readOrWritexml.CreateXmlDocument("通过批准", "0");
            }
            readOrWritexml.CreateXmlDocument("备注", SPBBZ.Text);
            readOrWritexml.CreateXmlDocument("土地证书记事", FZJS.Text);
            this.Close();
        }