⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmaccept.cs

📁 车载GPS?今天这个就是最好的工具
💻 CS
📖 第 1 页 / 共 3 页
字号:
			// rdoMan
			// 
			this.rdoMan.Enabled = false;
			this.rdoMan.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.rdoMan.ForeColor = System.Drawing.SystemColors.ControlText;
			this.rdoMan.Location = new System.Drawing.Point(368, 112);
			this.rdoMan.Name = "rdoMan";
			this.rdoMan.Size = new System.Drawing.Size(80, 24);
			this.rdoMan.TabIndex = 20;
			this.rdoMan.Text = "自管户";
			// 
			// rdoEmpS
			// 
			this.rdoEmpS.Checked = true;
			this.rdoEmpS.Enabled = false;
			this.rdoEmpS.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.rdoEmpS.ForeColor = System.Drawing.SystemColors.ControlText;
			this.rdoEmpS.Location = new System.Drawing.Point(120, 112);
			this.rdoEmpS.Name = "rdoEmpS";
			this.rdoEmpS.Size = new System.Drawing.Size(128, 24);
			this.rdoEmpS.TabIndex = 19;
			this.rdoEmpS.TabStop = true;
			this.rdoEmpS.Text = "燃气集团输配公司";
			// 
			// label2
			// 
			this.label2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.label2.Location = new System.Drawing.Point(8, 120);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(120, 16);
			this.label2.TabIndex = 14;
			this.label2.Text = "事故设备产权单位:";
			// 
			// txtCom
			// 
			this.txtCom.Enabled = false;
			this.txtCom.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.txtCom.Location = new System.Drawing.Point(112, 80);
			this.txtCom.Name = "txtCom";
			this.txtCom.Size = new System.Drawing.Size(592, 21);
			this.txtCom.TabIndex = 13;
			this.txtCom.Text = "";
			// 
			// lblCom
			// 
			this.lblCom.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.lblCom.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblCom.Location = new System.Drawing.Point(8, 88);
			this.lblCom.Name = "lblCom";
			this.lblCom.Size = new System.Drawing.Size(104, 23);
			this.lblCom.TabIndex = 12;
			this.lblCom.Text = "报警联系人单位:";
			this.lblCom.TextAlign = System.Drawing.ContentAlignment.TopRight;
			// 
			// txtPhone
			// 
			this.txtPhone.Enabled = false;
			this.txtPhone.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.txtPhone.Location = new System.Drawing.Point(512, 48);
			this.txtPhone.Name = "txtPhone";
			this.txtPhone.Size = new System.Drawing.Size(192, 21);
			this.txtPhone.TabIndex = 11;
			this.txtPhone.Text = "";
			// 
			// label1
			// 
			this.label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.label1.Location = new System.Drawing.Point(384, 56);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(120, 23);
			this.label1.TabIndex = 10;
			this.label1.Text = "报警联系人电话:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
			// 
			// txtEmp
			// 
			this.txtEmp.Enabled = false;
			this.txtEmp.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.txtEmp.Location = new System.Drawing.Point(112, 48);
			this.txtEmp.Name = "txtEmp";
			this.txtEmp.Size = new System.Drawing.Size(184, 21);
			this.txtEmp.TabIndex = 9;
			this.txtEmp.Text = "";
			// 
			// lblEmp
			// 
			this.lblEmp.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.lblEmp.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblEmp.Location = new System.Drawing.Point(32, 56);
			this.lblEmp.Name = "lblEmp";
			this.lblEmp.Size = new System.Drawing.Size(80, 23);
			this.lblEmp.TabIndex = 8;
			this.lblEmp.Text = "报警联系人:";
			this.lblEmp.TextAlign = System.Drawing.ContentAlignment.TopRight;
			// 
			// cboContent
			// 
			this.cboContent.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboContent.Enabled = false;
			this.cboContent.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.cboContent.Location = new System.Drawing.Point(512, 16);
			this.cboContent.Name = "cboContent";
			this.cboContent.Size = new System.Drawing.Size(192, 20);
			this.cboContent.TabIndex = 7;
			// 
			// lblContent
			// 
			this.lblContent.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.lblContent.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblContent.Location = new System.Drawing.Point(432, 24);
			this.lblContent.Name = "lblContent";
			this.lblContent.Size = new System.Drawing.Size(72, 23);
			this.lblContent.TabIndex = 6;
			this.lblContent.Text = "受理内容:";
			this.lblContent.TextAlign = System.Drawing.ContentAlignment.TopRight;
			// 
			// cboSource
			// 
			this.cboSource.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboSource.Enabled = false;
			this.cboSource.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.cboSource.Location = new System.Drawing.Point(112, 16);
			this.cboSource.Name = "cboSource";
			this.cboSource.Size = new System.Drawing.Size(184, 20);
			this.cboSource.TabIndex = 5;
			// 
			// lblSource
			// 
			this.lblSource.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.lblSource.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblSource.Location = new System.Drawing.Point(40, 24);
			this.lblSource.Name = "lblSource";
			this.lblSource.Size = new System.Drawing.Size(72, 23);
			this.lblSource.TabIndex = 4;
			this.lblSource.Text = "报警来源:";
			this.lblSource.TextAlign = System.Drawing.ContentAlignment.TopRight;
			// 
			// cboArea1
			// 
			this.cboArea1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboArea1.Enabled = false;
			this.cboArea1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.cboArea1.ItemHeight = 12;
			this.cboArea1.Location = new System.Drawing.Point(312, 48);
			this.cboArea1.Name = "cboArea1";
			this.cboArea1.Size = new System.Drawing.Size(104, 20);
			this.cboArea1.TabIndex = 27;
			// 
			// lblArea1
			// 
			this.lblArea1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.lblArea1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblArea1.Location = new System.Drawing.Point(208, 56);
			this.lblArea1.Name = "lblArea1";
			this.lblArea1.Size = new System.Drawing.Size(104, 23);
			this.lblArea1.TabIndex = 26;
			this.lblArea1.Text = "事故区域属地2:";
			this.lblArea1.TextAlign = System.Drawing.ContentAlignment.TopRight;
			// 
			// frmAccept
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(752, 421);
			this.Controls.Add(this.panel3);
			this.Name = "frmAccept";
			this.Text = "接警单详细内容";
			this.Load += new System.EventHandler(this.frmAccept_Load);
			this.panel3.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.groupBox1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void cmdCancel_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}

		private void frmAccept_Load(object sender, System.EventArgs e)
		{
			InitAccept();
		}
		#region 初始化单据
		private void InitAccept()
		{
			string mstrName;
			DataTable dtFilter =new DataTable();
			DataRow myDataRow;

			mstrName="Select * From Accept Where AcceptNO = '" + this.frm.strNO + "'"; 
			SqlConnection cnnSql = new SqlConnection(strConn);
			cnnSql.Open();
			SqlCommand cmdSql = new SqlCommand(mstrName,cnnSql);
			SqlDataAdapter daSql = new SqlDataAdapter(cmdSql);
			try 
			{
				daSql.Fill(dtFilter);
			} 
			catch(SqlException expSql)
			{
				MessageBox.Show(expSql.ToString(), this.Text);
				return;
			}
			cnnSql.Close();
			cmdSql.Dispose();
			cnnSql.Dispose();
			if (dtFilter.Rows.Count < 1)
			{
				return;
			}
			myDataRow=dtFilter.Rows[0];
			
			cboSource.Items.Clear();
			cboContent.Items.Clear();
			cboSpot.Items.Clear();
			cboVerdict.Items.Clear();
			cboArea.Items.Clear();
			cboArea1.Items.Clear();
			txtNo.Text=myDataRow["AcceptNO"].ToString();
			txtDate.Text=myDataRow["ADate"].ToString().Substring(0,10);
			txtTime.Text=myDataRow["ATime"].ToString();
			txtWeek.Text=myDataRow["AWeek"].ToString();
			cboSource.Items.Add(myDataRow["SourceID"].ToString());
			cboContent.Items.Add(myDataRow["ContentID"].ToString());
			cboSpot.Items.Add(myDataRow["SpotID"].ToString());
			cboVerdict.Items.Add(myDataRow["VerdictID"].ToString());
			cboArea.Items.Add(myDataRow["AreaID"].ToString());
			cboArea1.Items.Add(myDataRow["AreaID1"].ToString());
			txtAddress.Text=myDataRow["AAddress"].ToString();
			txtCom.Text=myDataRow["AUnit"].ToString();
			txtEmp.Text=myDataRow["AName"].ToString();
			txtPhone.Text=myDataRow["APhone"].ToString();
			txtAEmp.Text=myDataRow["EmpID"].ToString();
			txtDescribe.Text=myDataRow["ADescribe"].ToString();
			txtState.Text=myDataRow["AState"].ToString();
			if (myDataRow["AFUnit"].ToString()=="燃气集团销售公司")
			{
				rdoEmpX.Checked =true;
			}
			else if (myDataRow["AFUnit"].ToString()=="燃气集团输配公司")
			{
				rdoEmpS.Checked =true;
			}
			else if (myDataRow["AFUnit"].ToString()=="其它")
			{
				rdoOther.Checked =true;
			}
			else
			{
				rdoMan.Checked =true;
			}
			if (myDataRow["DVerdict"].ToString()=="正常时间")
			{
				rdoYTime.Checked =true;
			}
			else
			{
				rdoNTime.Checked =true;
			}
			cboSource.SelectedIndex =0;
			cboContent.SelectedIndex =0;
			cboSpot.SelectedIndex =0;
			cboVerdict.SelectedIndex =0;
			cboArea.SelectedIndex =0;
			cboArea1.SelectedIndex =0;
		}
		#endregion
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -