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

📄 proccystectomiesopform.ascx.cs

📁 医疗决策支持系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
			//Fields changed to combo boxes after HelpField review KR
			PageUtil.AddComboToViewState(ViewState,OpBladderMargin);
			PageUtil.AddComboToViewState(ViewState,OpBladderMarginFrozen);
			PageUtil.AddComboToViewState(ViewState,OpL_UreterMargin);
			PageUtil.AddComboToViewState(ViewState,OpR_UreterMargin);
			PageUtil.AddComboToViewState(ViewState,OpL_UreterMarginFrozen);
			PageUtil.AddComboToViewState(ViewState,OpR_UreterMarginFrozen);
			PageUtil.AddComboToViewState(ViewState,OpUrethraMargin);
			PageUtil.AddComboToViewState(ViewState,OpUrethraMarginFrozen);
			PageUtil.AddComboToViewState(ViewState,OpVagReconstruction);

			return base.SaveViewState();
		}

		override public HtmlInputHidden GetPrimKeyField()
		{
			return SurgeryId;
		}

		override protected DataEntryController GetController()
		{
			return new DataEntryController(new CystectomyDa(), Cystectomy.SurgeryId); //NOTE: fix args
		}

		override protected void SetDataEntryInfo()
		{
			this._tableInfo = "ProcCystectomiesOp";
			this._dataEntryTitle = "<a class=\"patientDataSectionTitle\"  href=\"DataEntryContainer.aspx?dataForm=SurgeriesForm&primKey="+Request.QueryString["parentKey"]+"\">Surgeries</a> > Cystectomies";
		}

		override protected BizObject GetParams()
		{
			Cystectomy biz = new Cystectomy();
			DataRow dr = biz.Tables[Cystectomy.Table_ProcCystectomiesOp].NewRow();

			if (!SurgeryId.Value.Equals(""))
			{
				dr[Cystectomy.SurgeryId] = SurgeryId.Value;
			}

			//selects use: Request.Form[FieldName.UniqueID].ToString();
			//dates use: PageUtil.ObjToDateTime(FieldName.Value);
			//checkbox use: if(FieldName.Checked){dr[BizObject.FieldName] = 1;}
			//Patient ID should = this.patientID
			
			 
			//dr[Cystectomy.OpCPT_Code] = Request.Form[OpCPT_Code.UniqueID].ToString();
			dr[Cystectomy.OpCPT_Code] = OpCPT_Code.Value;
			dr[Cystectomy.OpCPT_Description] = OpCPT_Description.Value;
			dr[Cystectomy.OpSurgeon] = Request.Form[OpSurgeon.UniqueID].ToString();
			dr[Cystectomy.OpSurgeonType] = Request.Form[OpSurgeonType.UniqueID].ToString();
			dr[Cystectomy.OpAssistant] = Request.Form[OpAssistant.UniqueID].ToString();
			dr[Cystectomy.OpAssistantType] = Request.Form[OpAssistantType.UniqueID].ToString();
			dr[Cystectomy.OpType] = Request.Form[OpType.UniqueID].ToString();
			dr[Cystectomy.OpCompleteResection] = Request.Form[OpCompleteResection.UniqueID].ToString();
			dr[Cystectomy.OpBladderMargin] = Request.Form[OpBladderMargin.UniqueID].ToString();
			dr[Cystectomy.OpBladderMarginFrozen] = Request.Form[OpBladderMarginFrozen.UniqueID].ToString();
			dr[Cystectomy.OpL_UreterMargin] = Request.Form[OpL_UreterMargin.UniqueID].ToString();
			dr[Cystectomy.OpL_UreterMarginFrozen] = Request.Form[OpL_UreterMarginFrozen.UniqueID].ToString();
			dr[Cystectomy.OpR_UreterMargin] = Request.Form[OpR_UreterMargin.UniqueID].ToString();
			dr[Cystectomy.OpR_UreterMarginFrozen] = Request.Form[OpR_UreterMarginFrozen.UniqueID].ToString();
			dr[Cystectomy.OpUrethraMargin] = Request.Form[OpUrethraMargin.UniqueID].ToString();
			dr[Cystectomy.OpUrethraMarginFrozen] = Request.Form[OpUrethraMarginFrozen.UniqueID].ToString();
			dr[Cystectomy.OpUrethrectomy] = Request.Form[OpUrethrectomy.UniqueID].ToString();
			dr[Cystectomy.OpR_UreterAnast] = Request.Form[OpR_UreterAnast.UniqueID].ToString();
			dr[Cystectomy.OpL_UreterAnast] = Request.Form[OpL_UreterAnast.UniqueID].ToString();
			dr[Cystectomy.OpLateralPedicleClips] = Request.Form[OpLateralPedicleClips.UniqueID].ToString();
			dr[Cystectomy.OpLateralPedicleStaples] = Request.Form[OpLateralPedicleStaples.UniqueID].ToString();
			dr[Cystectomy.OpLateralPedicleTies] = Request.Form[OpLateralPedicleTies.UniqueID].ToString();
			dr[Cystectomy.OpPosteriorPedicleClips] = Request.Form[OpPosteriorPedicleClips.UniqueID].ToString();
			dr[Cystectomy.OpPosteriorPedicleStaples] = Request.Form[OpPosteriorPedicleStaples.UniqueID].ToString();
			dr[Cystectomy.OpPosteriorPedicleTies] = Request.Form[OpPosteriorPedicleTies.UniqueID].ToString();
			dr[Cystectomy.OpHypogastricArteryLigated] = Request.Form[OpHypogastricArteryLigated.UniqueID].ToString();
			dr[Cystectomy.OpIncompletePelvicFloor] = Request.Form[OpIncompletePelvicFloor.UniqueID].ToString();
			dr[Cystectomy.OpIncompleteSideWall] = Request.Form[OpIncompleteSideWall.UniqueID].ToString();
			dr[Cystectomy.OpIncompleteRectum] = Request.Form[OpIncompleteRectum.UniqueID].ToString();
			dr[Cystectomy.OpGrossEVD] = Request.Form[OpGrossEVD.UniqueID].ToString();
			dr[Cystectomy.OpVagResection] = Request.Form[OpVagResection.UniqueID].ToString();
			dr[Cystectomy.OpVagResectionAnt] = Request.Form[OpVagResectionAnt.UniqueID].ToString();
			dr[Cystectomy.OpVagResectionLat] = Request.Form[OpVagResectionLat.UniqueID].ToString();
			dr[Cystectomy.OpVagReconstruction] = Request.Form[OpVagReconstruction.UniqueID].ToString();
			dr[Cystectomy.OpNerveSparing] = Request.Form[OpNerveSparing.UniqueID].ToString();
//			dr[Cystectomy.OpClinStageT] = Request.Form[OpClinStageT.UniqueID].ToString();
//			dr[Cystectomy.OpClinStageN] = Request.Form[OpClinStageN.UniqueID].ToString();
//			dr[Cystectomy.OpClinStageM] = Request.Form[OpClinStageM.UniqueID].ToString();
			dr[Cystectomy.OpNotes] = OpNotes.Value;

			AddBaseParams(dr);
			biz.Tables[Cystectomy.Table_ProcCystectomiesOp].Rows.Add(dr);
			biz.AcceptChanges();
			return biz;

		}

		protected override void SetFields(BizObject bz)
		{
			Cystectomy biz = (Cystectomy)bz;
			DataRow dr = biz.Tables[Cystectomy.Table_ProcCystectomiesOp].Rows[0];

			//selects use: PageUtil.SelectDropDownItem(fieldIdName, dr[Object.FieldName]);
			
			SurgeryId.Value = dr[Cystectomy.SurgeryId].ToString();
			//PageUtil.SelectDropDownItem(OpCPT_Code, dr[Cystectomy.OpCPT_Code]);
			OpCPT_Code.Value = dr[Cystectomy.OpCPT_Code].ToString();
			OpCPT_Description.Value = dr[Cystectomy.OpCPT_Description].ToString();
			OpSurgeon.Value = dr[Cystectomy.OpSurgeon].ToString();
			PageUtil.SelectDropDownItem(OpSurgeonType, dr[Cystectomy.OpSurgeonType]);
			OpAssistant.Value = dr[Cystectomy.OpAssistant].ToString();
			PageUtil.SelectDropDownItem(OpAssistantType, dr[Cystectomy.OpAssistantType]);
			PageUtil.SelectDropDownItem(OpType, dr[Cystectomy.OpType]);
			PageUtil.SelectDropDownItem(OpCompleteResection, dr[Cystectomy.OpCompleteResection]);
			OpBladderMargin.Value = dr[Cystectomy.OpBladderMargin].ToString();
			OpBladderMarginFrozen.Value = dr[Cystectomy.OpBladderMarginFrozen].ToString();
			OpL_UreterMargin.Value = dr[Cystectomy.OpL_UreterMargin].ToString();
			OpL_UreterMarginFrozen.Value = dr[Cystectomy.OpL_UreterMarginFrozen].ToString();
			OpR_UreterMargin.Value = dr[Cystectomy.OpR_UreterMargin].ToString();
			OpR_UreterMarginFrozen.Value = dr[Cystectomy.OpR_UreterMarginFrozen].ToString();
			OpUrethraMargin.Value = dr[Cystectomy.OpUrethraMargin].ToString();
			OpUrethraMarginFrozen.Value = dr[Cystectomy.OpUrethraMarginFrozen].ToString();
			PageUtil.SelectDropDownItem(OpUrethrectomy, dr[Cystectomy.OpUrethrectomy]);
			PageUtil.SelectDropDownItem(OpR_UreterAnast, dr[Cystectomy.OpR_UreterAnast]);
			PageUtil.SelectDropDownItem(OpL_UreterAnast, dr[Cystectomy.OpL_UreterAnast]);
			PageUtil.SelectDropDownItem(OpLateralPedicleClips, dr[Cystectomy.OpLateralPedicleClips]);
			PageUtil.SelectDropDownItem(OpLateralPedicleStaples, dr[Cystectomy.OpLateralPedicleStaples]);
			PageUtil.SelectDropDownItem(OpLateralPedicleTies, dr[Cystectomy.OpLateralPedicleTies]);
			PageUtil.SelectDropDownItem(OpPosteriorPedicleClips, dr[Cystectomy.OpPosteriorPedicleClips]);
			PageUtil.SelectDropDownItem(OpPosteriorPedicleStaples, dr[Cystectomy.OpPosteriorPedicleStaples]);
			PageUtil.SelectDropDownItem(OpPosteriorPedicleTies, dr[Cystectomy.OpPosteriorPedicleTies]);
			PageUtil.SelectDropDownItem(OpHypogastricArteryLigated, dr[Cystectomy.OpHypogastricArteryLigated]);
			PageUtil.SelectDropDownItem(OpIncompletePelvicFloor, dr[Cystectomy.OpIncompletePelvicFloor]);
			PageUtil.SelectDropDownItem(OpIncompleteSideWall, dr[Cystectomy.OpIncompleteSideWall]);
			PageUtil.SelectDropDownItem(OpIncompleteRectum, dr[Cystectomy.OpIncompleteRectum]);
			PageUtil.SelectDropDownItem(OpGrossEVD, dr[Cystectomy.OpGrossEVD]);
			PageUtil.SelectDropDownItem(OpVagResection, dr[Cystectomy.OpVagResection]);
			PageUtil.SelectDropDownItem(OpVagResectionAnt, dr[Cystectomy.OpVagResectionAnt]);
			PageUtil.SelectDropDownItem(OpVagResectionLat, dr[Cystectomy.OpVagResectionLat]);
//			PageUtil.SelectDropDownItem(OpVagReconstruction, dr[Cystectomy.OpVagReconstruction]);
			OpVagReconstruction.Value = dr[Cystectomy.OpVagReconstruction].ToString();
			PageUtil.SelectDropDownItem(OpNerveSparing, dr[Cystectomy.OpNerveSparing]);
//			PageUtil.SelectDropDownItem(OpClinStageT, dr[Cystectomy.OpClinStageT]);
//			PageUtil.SelectDropDownItem(OpClinStageN, dr[Cystectomy.OpClinStageN]);
//			PageUtil.SelectDropDownItem(OpClinStageM, dr[Cystectomy.OpClinStageM]);
			OpNotes.Value = dr[Cystectomy.OpNotes].ToString();

			SetBaseFields(dr);
		}


	}
}

⌨️ 快捷键说明

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