📄 procurinarydiversionsopform.ascx.cs
字号:
override protected void SetDataEntryInfo()
{
this._tableInfo = "ProcUrinaryDiversionsOp";
this._dataEntryTitle = "<a class=\"patientDataSectionTitle\" href=\"DataEntryContainer.aspx?dataForm=SurgeriesForm&primKey="+Request.QueryString["parentKey"]+"\">Surgeries</a> > Urinary Diversion";
}
override protected BizObject GetParams()
{
UrinaryDiversion biz = new UrinaryDiversion();
DataRow dr = biz.Tables[UrinaryDiversion.Table_ProcUrinaryDiversionsOp].NewRow();
if (!SurgeryId.Value.Equals(""))
{
dr[UrinaryDiversion.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[UrinaryDiversion.OpCPT_Code] = Request.Form[OpCPT_Code.UniqueID].ToString();
dr[UrinaryDiversion.OpCPT_Code] = OpCPT_Code.Value;
dr[UrinaryDiversion.OpCPT_Description] = OpCPT_Description.Value;
dr[UrinaryDiversion.OpSurgeon] = Request.Form[OpSurgeon.UniqueID].ToString();
dr[UrinaryDiversion.OpSurgeonType] = Request.Form[OpSurgeonType.UniqueID].ToString();
dr[UrinaryDiversion.OpAssistant] = Request.Form[OpAssistant.UniqueID].ToString();
dr[UrinaryDiversion.OpAssistantType] = Request.Form[OpAssistantType.UniqueID].ToString();
dr[UrinaryDiversion.OpType] = Request.Form[OpType.UniqueID].ToString();
dr[UrinaryDiversion.OpTermIleumLength] = OpTermIleumLength.Value;
dr[UrinaryDiversion.OpR_ColonLength] = OpR_ColonLength.Value;
dr[UrinaryDiversion.OpSigmoidLength] = OpSigmoidLength.Value;
dr[UrinaryDiversion.OpTransColonLength] = OpTransColonLength.Value;
dr[UrinaryDiversion.OpIlealBasedLength] = OpIlealBasedLength.Value;
dr[UrinaryDiversion.OpAppendixLength] = OpAppendixLength.Value;
dr[UrinaryDiversion.OpOtherSegment] = OpOtherSegment.Value;
dr[UrinaryDiversion.OpOtherSegmentLength] = OpOtherSegmentLength.Value;
dr[UrinaryDiversion.OpStomaType] = Request.Form[OpStomaType.UniqueID].ToString();
dr[UrinaryDiversion.OpStomaLocation] = Request.Form[OpStomaLocation.UniqueID].ToString();
dr[UrinaryDiversion.OpNumFascialSutures] = OpNumFascialSutures.Value;
dr[UrinaryDiversion.OpUreterStents] = Request.Form[OpUreterStents.UniqueID].ToString();
dr[UrinaryDiversion.OpUreterStentExternalized] = Request.Form[OpUreterStentExternalized.UniqueID].ToString();
dr[UrinaryDiversion.OpEvertedMucosa] = Request.Form[OpEvertedMucosa.UniqueID].ToString();
dr[UrinaryDiversion.OpUreterAnast] = Request.Form[OpUreterAnast.UniqueID].ToString();
dr[UrinaryDiversion.OpNB_Configuration] = Request.Form[OpNB_Configuration.UniqueID].ToString();
dr[UrinaryDiversion.OpNB_ChimneyNum] = OpNB_ChimneyNum.Value;
dr[UrinaryDiversion.OpNB_ChimneyLength1] = OpNB_ChimneyLength1.Value;
dr[UrinaryDiversion.OpNB_ChimneyLength2] = OpNB_ChimneyLength2.Value;
dr[UrinaryDiversion.OpNB_AfferentLimbLength] = OpNB_AfferentLimbLength.Value;
dr[UrinaryDiversion.OpBladderNeckTube] = Request.Form[OpBladderNeckTube.UniqueID].ToString();
dr[UrinaryDiversion.OpBladderNeckTubeLength] = OpBladderNeckTubeLength.Value;
dr[UrinaryDiversion.OpNumSutures] = OpNumSutures.Value;
dr[UrinaryDiversion.OpNB_NumUrethraSutures] = OpNB_NumUrethraSutures.Value;
dr[UrinaryDiversion.OpNB_UrethraSutureType] = Request.Form[OpNB_UrethraSutureType.UniqueID].ToString();
dr[UrinaryDiversion.OpNB_UrethraSutureQuality] = Request.Form[OpNB_UrethraSutureQuality.UniqueID].ToString();
dr[UrinaryDiversion.OpContMech] = Request.Form[OpContMech.UniqueID].ToString();
dr[UrinaryDiversion.OpContMechSubtype] = Request.Form[OpContMechSubtype.UniqueID].ToString();
dr[UrinaryDiversion.OpContMechLength] = OpContMechLength.Value;
dr[UrinaryDiversion.OpDrainJP] = Request.Form[OpDrainJP.UniqueID].ToString();
dr[UrinaryDiversion.OpDrainPelvic] = Request.Form[OpDrainPelvic.UniqueID].ToString();
dr[UrinaryDiversion.OpDrainPenrose] = Request.Form[OpDrainPenrose.UniqueID].ToString();
dr[UrinaryDiversion.OpDrainSuprapubic] = Request.Form[OpDrainSuprapubic.UniqueID].ToString();
dr[UrinaryDiversion.OpDrainStomal] = Request.Form[OpDrainStomal.UniqueID].ToString();
dr[UrinaryDiversion.OpDrainUrethra] = Request.Form[OpDrainUrethra.UniqueID].ToString();
dr[UrinaryDiversion.OpPouch] = Request.Form[OpPouch.UniqueID].ToString();
dr[UrinaryDiversion.OpNotes] = OpNotes.Value;
AddBaseParams(dr);
biz.Tables[UrinaryDiversion.Table_ProcUrinaryDiversionsOp].Rows.Add(dr);
biz.AcceptChanges();
return biz;
}
protected override void SetFields(BizObject bz)
{
UrinaryDiversion biz = (UrinaryDiversion)bz;
DataRow dr = biz.Tables[UrinaryDiversion.Table_ProcUrinaryDiversionsOp].Rows[0];
//selects use: PageUtil.SelectDropDownItem(fieldIdName, dr[Object.FieldName]);
SurgeryId.Value = dr[UrinaryDiversion.SurgeryId].ToString();
//PageUtil.SelectDropDownItem(OpCPT_Code, dr[UrinaryDiversion.OpCPT_Code]);
OpCPT_Code.Value = dr[UrinaryDiversion.OpCPT_Code].ToString();
OpCPT_Description.Value = dr[UrinaryDiversion.OpCPT_Description].ToString();
OpSurgeon.Value = dr[UrinaryDiversion.OpSurgeon].ToString();
PageUtil.SelectDropDownItem(OpSurgeonType, dr[UrinaryDiversion.OpSurgeonType]);
OpAssistant.Value = dr[UrinaryDiversion.OpAssistant].ToString();
PageUtil.SelectDropDownItem(OpAssistantType, dr[UrinaryDiversion.OpAssistantType]);
PageUtil.SelectDropDownItem(OpType, dr[UrinaryDiversion.OpType]);
OpTermIleumLength.Value = dr[UrinaryDiversion.OpTermIleumLength].ToString();
OpR_ColonLength.Value = dr[UrinaryDiversion.OpR_ColonLength].ToString();
OpSigmoidLength.Value = dr[UrinaryDiversion.OpSigmoidLength].ToString();
OpTransColonLength.Value = dr[UrinaryDiversion.OpTransColonLength].ToString();
OpIlealBasedLength.Value = dr[UrinaryDiversion.OpIlealBasedLength].ToString();
OpAppendixLength.Value = dr[UrinaryDiversion.OpAppendixLength].ToString();
OpOtherSegment.Value = dr[UrinaryDiversion.OpOtherSegment].ToString();
OpOtherSegmentLength.Value = dr[UrinaryDiversion.OpOtherSegmentLength].ToString();
PageUtil.SelectDropDownItem(OpStomaType, dr[UrinaryDiversion.OpStomaType]);
PageUtil.SelectDropDownItem(OpStomaLocation, dr[UrinaryDiversion.OpStomaLocation]);
OpNumFascialSutures.Value = dr[UrinaryDiversion.OpNumFascialSutures].ToString();
PageUtil.SelectDropDownItem(OpUreterStents, dr[UrinaryDiversion.OpUreterStents]);
PageUtil.SelectDropDownItem(OpUreterStentExternalized, dr[UrinaryDiversion.OpUreterStentExternalized]);
PageUtil.SelectDropDownItem(OpEvertedMucosa, dr[UrinaryDiversion.OpEvertedMucosa]);
PageUtil.SelectDropDownItem(OpUreterAnast, dr[UrinaryDiversion.OpUreterAnast]);
PageUtil.SelectDropDownItem(OpNB_Configuration, dr[UrinaryDiversion.OpNB_Configuration]);
OpNB_ChimneyNum.Value = dr[UrinaryDiversion.OpNB_ChimneyNum].ToString();
OpNB_ChimneyLength1.Value = dr[UrinaryDiversion.OpNB_ChimneyLength1].ToString();
OpNB_ChimneyLength2.Value = dr[UrinaryDiversion.OpNB_ChimneyLength2].ToString();
OpNB_AfferentLimbLength.Value = dr[UrinaryDiversion.OpNB_AfferentLimbLength].ToString();
PageUtil.SelectDropDownItem(OpBladderNeckTube, dr[UrinaryDiversion.OpBladderNeckTube]);
OpBladderNeckTubeLength.Value = dr[UrinaryDiversion.OpBladderNeckTubeLength].ToString();
OpNumSutures.Value = dr[UrinaryDiversion.OpNumSutures].ToString();
OpNB_NumUrethraSutures.Value = dr[UrinaryDiversion.OpNB_NumUrethraSutures].ToString();
PageUtil.SelectDropDownItem(OpNB_UrethraSutureType, dr[UrinaryDiversion.OpNB_UrethraSutureType]);
PageUtil.SelectDropDownItem(OpNB_UrethraSutureQuality, dr[UrinaryDiversion.OpNB_UrethraSutureQuality]);
PageUtil.SelectDropDownItem(OpContMech, dr[UrinaryDiversion.OpContMech]);
PageUtil.SelectDropDownItem(OpContMechSubtype, dr[UrinaryDiversion.OpContMechSubtype]);
OpContMechLength.Value = dr[UrinaryDiversion.OpContMechLength].ToString();
PageUtil.SelectDropDownItem(OpDrainJP, dr[UrinaryDiversion.OpDrainJP]);
PageUtil.SelectDropDownItem(OpDrainPelvic, dr[UrinaryDiversion.OpDrainPelvic]);
PageUtil.SelectDropDownItem(OpDrainPenrose, dr[UrinaryDiversion.OpDrainPenrose]);
PageUtil.SelectDropDownItem(OpDrainSuprapubic, dr[UrinaryDiversion.OpDrainSuprapubic]);
PageUtil.SelectDropDownItem(OpDrainStomal, dr[UrinaryDiversion.OpDrainStomal]);
PageUtil.SelectDropDownItem(OpDrainUrethra, dr[UrinaryDiversion.OpDrainUrethra]);
PageUtil.SelectDropDownItem(OpPouch, dr[UrinaryDiversion.OpPouch]);
OpNotes.Value = dr[UrinaryDiversion.OpNotes].ToString();
SetBaseFields(dr);
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -