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

📄 procnodegrossfindingsform.ascx.cs

📁 医疗决策支持系统
💻 CS
字号:
namespace Caisis.UI.Modules.All.DataEntryForms
{
	using System;
	using System.Data;
	using System.Data.SqlClient;
	using System.Drawing;
	using System.Web;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;
	using System.Collections;
	using System.Collections.Specialized;

	using Caisis.Controller;
	using Caisis.DataAccess;
	using Caisis.BusinessObject;

	using Caisis.UI.Core.Classes;

	public abstract class ProcNodeGrossFindingsForm : DataGridControl
	{

		override protected DataEntryController GetController()
		{
			return new DataGridController(new NodeGrossFindingDa(), NodeGrossFinding.ProcNodeFindingId);
		}

		override protected void SetDataEntryInfo()
		{
			this._tableInfo = "ProcNodeGrossFindings";
			this._dataEntryTitle = "<a href=\"DataEntryContainer.aspx?dataForm=ProceduresForm&primKey="+Request.QueryString["parentKey"]+"\"> Procedures</a> > Node Gross Findings";
			}

		protected override DataTable PhysicalDataRead()
		{
			DataGridController ct = new DataGridController(new NodeGrossFindingDa(), NodeGrossFinding.ProcNodeFindingId);
			DataSet ds = ct.GetDataGridRecords(int.Parse(Request.QueryString["parentKey"].ToString()));
			return ds.Tables[0];
		}

		protected override DataSet GetGridRow(DataGridCommandEventArgs e)
		{
			NodeGrossFinding biz = new NodeGrossFinding();
			DataSet ds = new DataSet();
			ds.Tables.Add(biz);
			DataRow dr = biz.NewRow();
			 
			HtmlSelect NodeFindSide = (HtmlSelect) e.Item.FindControl("NodeFindSide");
			HtmlSelect NodeFindSite = (HtmlSelect) e.Item.FindControl("NodeFindSite");
			HtmlSelect NodeFindGrossStatus = (HtmlSelect) e.Item.FindControl("NodeFindGrossStatus");
			HtmlSelect NodeFindFrozenSection = (HtmlSelect) e.Item.FindControl("NodeFindFrozenSection");

			TextBox updateTime				= (TextBox) e.Item.FindControl("UpdateTime");

			
			dr[NodeGrossFinding.ProcedureId] = Request.QueryString["parentKey"].ToString();
			dr[NodeGrossFinding.ProcNodeFindingId] = grid.DataKeys[e.Item.ItemIndex];
			dr[NodeGrossFinding.NodeFindSide] = Request.Form[NodeFindSide.UniqueID].ToString();
			dr[NodeGrossFinding.NodeFindSite] = Request.Form[NodeFindSite.UniqueID].ToString();
			dr[NodeGrossFinding.NodeFindGrossStatus] = Request.Form[NodeFindGrossStatus.UniqueID].ToString();
			dr[NodeGrossFinding.NodeFindFrozenSection] = Request.Form[NodeFindFrozenSection.UniqueID].ToString();

			dr[BizObject.UpdatedTime]				= PageUtil.ObjToDateTime(updateTime.Text);

			biz.Rows.Add(dr);
			return ds;
		}

		public void ItemBound(Object sender, DataGridItemEventArgs e)
		{
			if(e.Item.ItemType == ListItemType.EditItem)
			{
				DataRowView drv = (DataRowView) e.Item.DataItem;

				HtmlSelect nodefindside				= (HtmlSelect) e.Item.FindControl("NodeFindSide");
				HtmlSelect nodefindsite				= (HtmlSelect) e.Item.FindControl("NodeFindSite");
				HtmlSelect nodefindgrossstatus		= (HtmlSelect) e.Item.FindControl("NodeFindGrossStatus");
				HtmlSelect nodefindfrozensection	= (HtmlSelect) e.Item.FindControl("NodeFindFrozenSection");

			
				PageUtil.FillLkpDropDown(nodefindside, "NodeSide");
				PageUtil.SelectDropDownItem(nodefindside, drv[NodeGrossFinding.NodeFindSide].ToString());
				PageUtil.FillLkpDropDown(nodefindsite, "NodeSite");
				PageUtil.SelectDropDownItem(nodefindsite, drv[NodeGrossFinding.NodeFindSite].ToString());
				PageUtil.FillLkpDropDown(nodefindgrossstatus, "NodeFindGrossStatus");
				PageUtil.SelectDropDownItem(nodefindgrossstatus, drv[NodeGrossFinding.NodeFindGrossStatus].ToString());
				PageUtil.FillLkpDropDown(nodefindfrozensection, "FrozenSection");
				PageUtil.SelectDropDownItem(nodefindfrozensection, drv[NodeGrossFinding.NodeFindFrozenSection].ToString());

				
				TextBox procedureId = (TextBox) e.Item.FindControl("ProcedureId");
				procedureId.Text = drv[NodeGrossFinding.ProcedureId].ToString();
				TextBox updateTime = (TextBox)e.Item.FindControl("UpdateTime");
				updateTime.Text = drv[BizObject.UpdatedTime].ToString();
			}
		}
	}
}

⌨️ 快捷键说明

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