📄 xuqiuchaxunform.cs
字号:
//===========================================================================
// Smarclient FPMS Demo Project a sample project for SmartClient technology.
// Smarclient FPMS Demo is designed and implemented bases Microsoft Application Block tech.
// Author: SFPMS Team, Date 2004-11
// Vision 1.0
// Revison History
//=============================================================================
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using Microsoft.ApplicationBlocks.ApplicationUpdater;
using Microsoft.ApplicationBlocks.SmartClient.Offline;
using JSW.Tool;
using JSW.FPMS.Tool;
using JSW.FPMS.Xiang.KongZhi;
namespace JSW.FPMS.Xiang.ShiTu
{
/// <summary>
/// clsXuQiuChaXunForm 应用程序主界面,响应用户UI操作
/// MVC中的Viewer角色
/// </summary>
public class XuQiuChaXunForm : System.Windows.Forms.Form
{
#region 成员变量区域
private System.Windows.Forms.Button BT_XuQiuLuRu;
private System.Windows.Forms.GroupBox GB_JieGuo;
private System.Windows.Forms.DataGrid DG_XuQiu;
private System.Windows.Forms.MenuItem menuItem8;
private System.Windows.Forms.MenuItem menuItem9;
private System.Windows.Forms.MainMenu MM_CaiDan;
private System.Windows.Forms.MenuItem MMI_GongNeng;
private System.Windows.Forms.MenuItem MMI_XuQiuLuRu;
private System.Windows.Forms.MenuItem MMI_TuiChu;
private System.Windows.Forms.MenuItem MMI_BangZhuBT;
private System.Windows.Forms.MenuItem MMI_BangZhu;
private System.Windows.Forms.MenuItem MMI_GuanYu;
private System.Windows.Forms.StatusBar SB_ZhuangTai;
private System.ComponentModel.IContainer components;
//界面控制器
private clsXuQiuChaXunKongZhi jiemianKongZhi = null;
private System.Windows.Forms.DataGridTableStyle DGTS_XiuQiu;
private System.Windows.Forms.DataGridTextBoxColumn DGTSTB_CaiJiShiJian;
private System.Windows.Forms.DataGridTextBoxColumn DGTSTB_TiChuRen;
private System.Windows.Forms.DataGridTextBoxColumn DGTSTB_YuFuBianMa;
private System.Windows.Forms.DataGridTextBoxColumn DGTSTB_XuQiuLeiBie;
private System.Windows.Forms.DataGridTextBoxColumn DGTSTB_DaFuRen;
private System.Windows.Forms.DataGridTextBoxColumn DGTSTB_DaFuShiJian;
private System.Windows.Forms.DataGridTextBoxColumn DGTSTB_XinXiDianBianHao;
private System.Windows.Forms.DataGridTextBoxColumn DGTSTB_XuQiuManYiDu;
private System.Windows.Forms.Button BT_ShuanXin;
private System.Windows.Forms.MenuItem MMI_ShuaXin;
private System.Windows.Forms.Button BT_DiaoKan;
private System.Windows.Forms.Timer TM_ShuJuGengXin;
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem MMI_ShangXian;
private System.Windows.Forms.MenuItem MMI_LiXian;
private System.Windows.Forms.PictureBox pictureBox1;
//
private DataSet xuqiuChaXun = null;
#endregion
#region 私有方法区域
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(XuQiuChaXunForm));
this.BT_XuQiuLuRu = new System.Windows.Forms.Button();
this.GB_JieGuo = new System.Windows.Forms.GroupBox();
this.DG_XuQiu = new System.Windows.Forms.DataGrid();
this.DGTS_XiuQiu = new System.Windows.Forms.DataGridTableStyle();
this.DGTSTB_CaiJiShiJian = new System.Windows.Forms.DataGridTextBoxColumn();
this.DGTSTB_TiChuRen = new System.Windows.Forms.DataGridTextBoxColumn();
this.DGTSTB_YuFuBianMa = new System.Windows.Forms.DataGridTextBoxColumn();
this.DGTSTB_XuQiuLeiBie = new System.Windows.Forms.DataGridTextBoxColumn();
this.DGTSTB_DaFuRen = new System.Windows.Forms.DataGridTextBoxColumn();
this.DGTSTB_DaFuShiJian = new System.Windows.Forms.DataGridTextBoxColumn();
this.DGTSTB_XinXiDianBianHao = new System.Windows.Forms.DataGridTextBoxColumn();
this.DGTSTB_XuQiuManYiDu = new System.Windows.Forms.DataGridTextBoxColumn();
this.MM_CaiDan = new System.Windows.Forms.MainMenu();
this.MMI_GongNeng = new System.Windows.Forms.MenuItem();
this.MMI_ShuaXin = new System.Windows.Forms.MenuItem();
this.MMI_XuQiuLuRu = new System.Windows.Forms.MenuItem();
this.menuItem8 = new System.Windows.Forms.MenuItem();
this.MMI_TuiChu = new System.Windows.Forms.MenuItem();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.MMI_ShangXian = new System.Windows.Forms.MenuItem();
this.MMI_LiXian = new System.Windows.Forms.MenuItem();
this.MMI_BangZhuBT = new System.Windows.Forms.MenuItem();
this.MMI_BangZhu = new System.Windows.Forms.MenuItem();
this.menuItem9 = new System.Windows.Forms.MenuItem();
this.MMI_GuanYu = new System.Windows.Forms.MenuItem();
this.SB_ZhuangTai = new System.Windows.Forms.StatusBar();
this.BT_ShuanXin = new System.Windows.Forms.Button();
this.BT_DiaoKan = new System.Windows.Forms.Button();
this.TM_ShuJuGengXin = new System.Windows.Forms.Timer(this.components);
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.GB_JieGuo.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.DG_XuQiu)).BeginInit();
this.SuspendLayout();
//
// BT_XuQiuLuRu
//
this.BT_XuQiuLuRu.Location = new System.Drawing.Point(88, 16);
this.BT_XuQiuLuRu.Name = "BT_XuQiuLuRu";
this.BT_XuQiuLuRu.TabIndex = 10;
this.BT_XuQiuLuRu.Text = "需求录入";
this.BT_XuQiuLuRu.Click += new System.EventHandler(this.BT_XuQiuLuRu_Click);
//
// GB_JieGuo
//
this.GB_JieGuo.Controls.Add(this.DG_XuQiu);
this.GB_JieGuo.Location = new System.Drawing.Point(8, 48);
this.GB_JieGuo.Name = "GB_JieGuo";
this.GB_JieGuo.Size = new System.Drawing.Size(592, 304);
this.GB_JieGuo.TabIndex = 14;
this.GB_JieGuo.TabStop = false;
//
// DG_XuQiu
//
this.DG_XuQiu.CaptionVisible = false;
this.DG_XuQiu.DataMember = "";
this.DG_XuQiu.Dock = System.Windows.Forms.DockStyle.Fill;
this.DG_XuQiu.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.DG_XuQiu.Location = new System.Drawing.Point(3, 17);
this.DG_XuQiu.Name = "DG_XuQiu";
this.DG_XuQiu.Size = new System.Drawing.Size(586, 284);
this.DG_XuQiu.TabIndex = 0;
this.DG_XuQiu.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
this.DGTS_XiuQiu});
this.DG_XuQiu.DoubleClick += new System.EventHandler(this.DG_XuQiu_DoubleClick);
//
// DGTS_XiuQiu
//
this.DGTS_XiuQiu.DataGrid = this.DG_XuQiu;
this.DGTS_XiuQiu.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
this.DGTSTB_CaiJiShiJian,
this.DGTSTB_TiChuRen,
this.DGTSTB_YuFuBianMa,
this.DGTSTB_XuQiuLeiBie,
this.DGTSTB_DaFuRen,
this.DGTSTB_DaFuShiJian,
this.DGTSTB_XinXiDianBianHao,
this.DGTSTB_XuQiuManYiDu});
this.DGTS_XiuQiu.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.DGTS_XiuQiu.MappingName = "XuQiu";
//
// DGTSTB_CaiJiShiJian
//
this.DGTSTB_CaiJiShiJian.Format = "yyyy-MM-dd";
this.DGTSTB_CaiJiShiJian.FormatInfo = null;
this.DGTSTB_CaiJiShiJian.HeaderText = "采集时间";
this.DGTSTB_CaiJiShiJian.MappingName = "CaiJiShiJian";
this.DGTSTB_CaiJiShiJian.NullText = "";
this.DGTSTB_CaiJiShiJian.Width = 75;
//
// DGTSTB_TiChuRen
//
this.DGTSTB_TiChuRen.Format = "";
this.DGTSTB_TiChuRen.FormatInfo = null;
this.DGTSTB_TiChuRen.HeaderText = "提出人";
this.DGTSTB_TiChuRen.MappingName = "TiChuRen";
this.DGTSTB_TiChuRen.NullText = "";
this.DGTSTB_TiChuRen.Width = 75;
//
// DGTSTB_YuFuBianMa
//
this.DGTSTB_YuFuBianMa.Format = "";
this.DGTSTB_YuFuBianMa.FormatInfo = null;
this.DGTSTB_YuFuBianMa.HeaderText = "育妇编码";
this.DGTSTB_YuFuBianMa.MappingName = "YuFuBianMa";
this.DGTSTB_YuFuBianMa.NullText = "";
this.DGTSTB_YuFuBianMa.Width = 75;
//
// DGTSTB_XuQiuLeiBie
//
this.DGTSTB_XuQiuLeiBie.Format = "";
this.DGTSTB_XuQiuLeiBie.FormatInfo = null;
this.DGTSTB_XuQiuLeiBie.HeaderText = "需求类别";
this.DGTSTB_XuQiuLeiBie.MappingName = "XuQiuLeiBie";
this.DGTSTB_XuQiuLeiBie.NullText = "";
this.DGTSTB_XuQiuLeiBie.Width = 75;
//
// DGTSTB_DaFuRen
//
this.DGTSTB_DaFuRen.Format = "";
this.DGTSTB_DaFuRen.FormatInfo = null;
this.DGTSTB_DaFuRen.HeaderText = "答复人";
this.DGTSTB_DaFuRen.MappingName = "DaFuRen";
this.DGTSTB_DaFuRen.NullText = "";
this.DGTSTB_DaFuRen.Width = 75;
//
// DGTSTB_DaFuShiJian
//
this.DGTSTB_DaFuShiJian.Format = "yyyy-MM-dd";
this.DGTSTB_DaFuShiJian.FormatInfo = null;
this.DGTSTB_DaFuShiJian.HeaderText = "答复时间";
this.DGTSTB_DaFuShiJian.MappingName = "DaFuShiJian";
this.DGTSTB_DaFuShiJian.NullText = "";
this.DGTSTB_DaFuShiJian.Width = 75;
//
// DGTSTB_XinXiDianBianHao
//
this.DGTSTB_XinXiDianBianHao.Format = "";
this.DGTSTB_XinXiDianBianHao.FormatInfo = null;
this.DGTSTB_XinXiDianBianHao.HeaderText = "信息点编号";
this.DGTSTB_XinXiDianBianHao.MappingName = "XinXiDianBianHao";
this.DGTSTB_XinXiDianBianHao.NullText = "";
this.DGTSTB_XinXiDianBianHao.Width = 75;
//
// DGTSTB_XuQiuManYiDu
//
this.DGTSTB_XuQiuManYiDu.Format = "";
this.DGTSTB_XuQiuManYiDu.FormatInfo = null;
this.DGTSTB_XuQiuManYiDu.HeaderText = "需求满意度";
this.DGTSTB_XuQiuManYiDu.MappingName = "XuQiuManYiDu";
this.DGTSTB_XuQiuManYiDu.NullText = "";
this.DGTSTB_XuQiuManYiDu.Width = 75;
//
// MM_CaiDan
//
this.MM_CaiDan.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.MMI_GongNeng,
this.menuItem1,
this.MMI_BangZhuBT});
//
// MMI_GongNeng
//
this.MMI_GongNeng.Index = 0;
this.MMI_GongNeng.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.MMI_ShuaXin,
this.MMI_XuQiuLuRu,
this.menuItem8,
this.MMI_TuiChu});
this.MMI_GongNeng.Text = "文件(&F)";
//
// MMI_ShuaXin
//
this.MMI_ShuaXin.Index = 0;
this.MMI_ShuaXin.Text = "刷新";
this.MMI_ShuaXin.Click += new System.EventHandler(this.MMI_ShuaXin_Click);
//
// MMI_XuQiuLuRu
//
this.MMI_XuQiuLuRu.Index = 1;
this.MMI_XuQiuLuRu.Text = "需求录入";
this.MMI_XuQiuLuRu.Click += new System.EventHandler(this.MMI_XuQiuLuRu_Click);
//
// menuItem8
//
this.menuItem8.Index = 2;
this.menuItem8.Text = "-";
//
// MMI_TuiChu
//
this.MMI_TuiChu.Index = 3;
this.MMI_TuiChu.Text = "退出";
this.MMI_TuiChu.Click += new System.EventHandler(this.MMI_TuiChu_Click);
//
// menuItem1
//
this.menuItem1.Index = 1;
this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.MMI_ShangXian,
this.MMI_LiXian});
this.menuItem1.Text = "操作(&O)";
//
// MMI_ShangXian
//
this.MMI_ShangXian.Index = 0;
this.MMI_ShangXian.Text = "上线";
this.MMI_ShangXian.Click += new System.EventHandler(this.MMI_ShangXian_Click);
//
// MMI_LiXian
//
this.MMI_LiXian.Index = 1;
this.MMI_LiXian.Text = "离线";
this.MMI_LiXian.Click += new System.EventHandler(this.MMI_LiXian_Click);
//
// MMI_BangZhuBT
//
this.MMI_BangZhuBT.Index = 2;
this.MMI_BangZhuBT.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.MMI_BangZhu,
this.menuItem9,
this.MMI_GuanYu});
this.MMI_BangZhuBT.Text = "帮助(&H)";
//
// MMI_BangZhu
//
this.MMI_BangZhu.Index = 0;
this.MMI_BangZhu.Text = "帮助";
this.MMI_BangZhu.Click += new System.EventHandler(this.MMI_BangZhu_Click);
//
// menuItem9
//
this.menuItem9.Index = 1;
this.menuItem9.Text = "-";
//
// MMI_GuanYu
//
this.MMI_GuanYu.Index = 2;
this.MMI_GuanYu.Text = "关于";
this.MMI_GuanYu.Click += new System.EventHandler(this.MMI_GuanYu_Click);
//
// SB_ZhuangTai
//
this.SB_ZhuangTai.Location = new System.Drawing.Point(0, 361);
this.SB_ZhuangTai.Name = "SB_ZhuangTai";
this.SB_ZhuangTai.Size = new System.Drawing.Size(608, 16);
this.SB_ZhuangTai.TabIndex = 15;
this.SB_ZhuangTai.Text = "应用程序启动";
//
// BT_ShuanXin
//
this.BT_ShuanXin.Location = new System.Drawing.Point(8, 16);
this.BT_ShuanXin.Name = "BT_ShuanXin";
this.BT_ShuanXin.TabIndex = 16;
this.BT_ShuanXin.Text = "刷新";
this.BT_ShuanXin.Click += new System.EventHandler(this.BT_ShuanXin_Click);
//
// BT_DiaoKan
//
this.BT_DiaoKan.Location = new System.Drawing.Point(168, 16);
this.BT_DiaoKan.Name = "BT_DiaoKan";
this.BT_DiaoKan.TabIndex = 17;
this.BT_DiaoKan.Text = "调看";
this.BT_DiaoKan.Click += new System.EventHandler(this.BT_DiaoKan_Click);
//
// TM_ShuJuGengXin
//
this.TM_ShuJuGengXin.Enabled = true;
this.TM_ShuJuGengXin.Interval = 15000;
this.TM_ShuJuGengXin.Tick += new System.EventHandler(this.TM_ShuJuGengXin_Tick);
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(352, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(248, 48);
this.pictureBox1.TabIndex = 18;
this.pictureBox1.TabStop = false;
//
// XuQiuChaXunForm
//
this.AutoScale = false;
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(608, 377);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.BT_DiaoKan);
this.Controls.Add(this.BT_ShuanXin);
this.Controls.Add(this.SB_ZhuangTai);
this.Controls.Add(this.GB_JieGuo);
this.Controls.Add(this.BT_XuQiuLuRu);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(616, 424);
this.Menu = this.MM_CaiDan;
this.MinimumSize = new System.Drawing.Size(616, 424);
this.Name = "XuQiuChaXunForm";
this.Text = "人口和计划生育管理信息系统 (FPMS) :乡级系统";
this.Closing += new System.ComponentModel.CancelEventHandler(this.XuQiuChaXunForm_Closing);
this.Closed += new System.EventHandler(this.XuQiuChaXunForm_Closed);
this.GB_JieGuo.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.DG_XuQiu)).EndInit();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -