📄 procprostatectomiesopform.ascx.cs
字号:
dr[Prostatectomy.OpL_AV_Site] = Request.Form[OpL_AV_Site.UniqueID].ToString();
dr[Prostatectomy.OpL_DopplerStatus] = Request.Form[OpL_DopplerStatus.UniqueID].ToString();
dr[Prostatectomy.OpP_Drain] = Request.Form[OpP_Drain.UniqueID].ToString();
dr[Prostatectomy.OpR_AV_Site] = Request.Form[OpR_AV_Site.UniqueID].ToString();
dr[Prostatectomy.OpR_DopplerStatus] = Request.Form[OpR_DopplerStatus.UniqueID].ToString();
dr[Prostatectomy.OpSuspVeinComplex] = Request.Form[OpSuspVeinComplex.UniqueID].ToString();
dr[Prostatectomy.OpSV_DissectionFirst] = Request.Form[OpSV_DissectionFirst.UniqueID].ToString();
AddBaseParams(dr);
biz.Tables[Prostatectomy.Table_ProcProstatectomiesOp].Rows.Add(dr);
biz.AcceptChanges();
return biz;
}
protected override void SetFields(BizObject bz)
{
Prostatectomy biz = (Prostatectomy)bz;
DataRow dr = biz.Tables[Prostatectomy.Table_ProcProstatectomiesOp].Rows[0];
//selects use: PageUtil.SelectDropDownItem(fieldIdName, dr[Object.FieldName]);
SurgeryId.Value = dr[Prostatectomy.SurgeryId].ToString();
//PageUtil.SelectDropDownItem(OpCPT_Code, dr[Prostatectomy.OpCPT_Code]);
OpCPT_Code.Value = dr[Prostatectomy.OpCPT_Code].ToString();
OpCPT_Description.Value = dr[Prostatectomy.OpCPT_Description].ToString();
OpSurgeon.Value = dr[Prostatectomy.OpSurgeon].ToString();
PageUtil.SelectDropDownItem(OpSurgeonType, dr[Prostatectomy.OpSurgeonType]);
OpAssistant.Value = dr[Prostatectomy.OpAssistant].ToString();
PageUtil.SelectDropDownItem(OpAssistantType, dr[Prostatectomy.OpAssistantType]);
PageUtil.SelectDropDownItem(OpType, dr[Prostatectomy.OpType]);
PageUtil.SelectDropDownItem(OpClinStageSystem, dr[Prostatectomy.OpClinStageSystem]);
PageUtil.SelectDropDownItem(OpClinStageT, dr[Prostatectomy.OpClinStageT]);
PageUtil.SelectDropDownItem(OpBulldogClamps, dr[Prostatectomy.OpBulldogClamps]);
PageUtil.SelectDropDownItem(OpBladderClosure, dr[Prostatectomy.OpBladderClosure]);
PageUtil.SelectDropDownItem(OpAccessVessels, dr[Prostatectomy.OpAccessVessels]);
PageUtil.SelectDropDownItem(OpAV_Preserved, dr[Prostatectomy.OpAV_Preserved]);
PageUtil.SelectDropDownItem(OpPuboprostatics, dr[Prostatectomy.OpPuboprostatics]);
OpR_AV_Diam.Value = dr[Prostatectomy.OpR_AV_Diam].ToString();
OpL_AV_Diam.Value = dr[Prostatectomy.OpL_AV_Diam].ToString();
OpR_DopplerVA.Value = dr[Prostatectomy.OpR_DopplerVA].ToString();
OpL_DopplerStatus.Value = dr[Prostatectomy.OpL_DopplerStatus].ToString();
OpL_DopplerVA.Value = dr[Prostatectomy.OpL_DopplerVA].ToString();
PageUtil.SelectDropDownItem(OpL_NVB_Status, dr[Prostatectomy.OpL_NVB_Status]);
PageUtil.SelectDropDownItem(OpL_NVB_DissectionType, dr[Prostatectomy.OpL_NVB_DissectionType]);
PageUtil.SelectDropDownItem(OpL_NVB_Graft, dr[Prostatectomy.OpL_NVB_Graft]);
PageUtil.SelectDropDownItem(OpL_NVB_Donor, dr[Prostatectomy.OpL_NVB_Donor]);
PageUtil.SelectDropDownItem(OpL_NVB_Quality, dr[Prostatectomy.OpL_NVB_Quality]);
PageUtil.SelectDropDownItem(OpR_NVB_Status, dr[Prostatectomy.OpR_NVB_Status]);
PageUtil.SelectDropDownItem(OpR_NVB_DissectionType, dr[Prostatectomy.OpR_NVB_DissectionType]);
PageUtil.SelectDropDownItem(OpR_NVB_Graft, dr[Prostatectomy.OpR_NVB_Graft]);
PageUtil.SelectDropDownItem(OpR_NVB_Donor, dr[Prostatectomy.OpR_NVB_Donor]);
PageUtil.SelectDropDownItem(OpR_NVB_Quality, dr[Prostatectomy.OpR_NVB_Quality]);
PageUtil.SelectDropDownItem(OpAnastQuality, dr[Prostatectomy.OpAnastQuality]);
OpAnastNumSutures.Value = dr[Prostatectomy.OpAnastNumSutures].ToString();
PageUtil.SelectDropDownItem(OpAnastSuturePattern, dr[Prostatectomy.OpAnastSuturePattern]);
OpAnastSutureNotes.Value = dr[Prostatectomy.OpAnastSutureNotes].ToString();
OpBN_Diam.Value = dr[Prostatectomy.OpBN_Diam].ToString();
OpBN_DegreeEversion.Value = dr[Prostatectomy.OpBN_DegreeEversion].ToString();
PageUtil.SelectDropDownItem(OpL_Drain, dr[Prostatectomy.OpL_Drain]);
PageUtil.SelectDropDownItem(OpR_Drain, dr[Prostatectomy.OpR_Drain]);
PageUtil.SelectDropDownItem(OpCathTraction, dr[Prostatectomy.OpCathTraction]);
OpCathTractionTime.Value = dr[Prostatectomy.OpCathTractionTime].ToString();
OpNotes.Value = dr[Prostatectomy.OpNotes].ToString();
PageUtil.SelectDropDownItem(OpA_Drain, dr[Prostatectomy.OpA_Drain]);
PageUtil.SelectDropDownItem(OpL_AV_Site, dr[Prostatectomy.OpL_AV_Site]);
PageUtil.SelectDropDownItem(OpL_DopplerStatus, dr[Prostatectomy.OpL_DopplerStatus]);
PageUtil.SelectDropDownItem(OpP_Drain, dr[Prostatectomy.OpP_Drain]);
PageUtil.SelectDropDownItem(OpR_AV_Site, dr[Prostatectomy.OpR_AV_Site]);
PageUtil.SelectDropDownItem(OpR_DopplerStatus, dr[Prostatectomy.OpR_DopplerStatus]);
PageUtil.SelectDropDownItem(OpSuspVeinComplex, dr[Prostatectomy.OpSuspVeinComplex]);
PageUtil.SelectDropDownItem(OpSV_DissectionFirst, dr[Prostatectomy.OpSV_DissectionFirst]);
SetBaseFields(dr);
SetStageSelects();
PageUtil.SelectDropDownItem(OpClinStageT, dr[Prostatectomy.OpClinStageT]);
PageUtil.SelectDropDownItem(OpClinStageSystem, dr[Prostatectomy.OpClinStageSystem]);
}
// enabling of staging fields is different
/*
override public void EnableFormFields()
{
foreach(Control con in this.Controls)
{
if (con is HtmlControl)
{
if (con is HtmlInputControl || con is HtmlSelect || con is HtmlTextArea || con is HtmlInputText)
{
if (!con.ID.Equals("OpClinStageT"))
{
((HtmlControl)con).Disabled = false;
}
}
else if (con is HtmlImage) // added by jf for the calendar buttons
{
((HtmlControl)con).Attributes.Add("class", "pdFormFieldButtonOn");
((HtmlControl)con).Disabled = false;
}
}
else if (con is DataGrid)
{
((DataGrid)con).Enabled = true;
}
else if (con is LinkButton)
{
((LinkButton)con).Enabled = true;
}
else if (con is Caisis.UI.ComboBox)
{
((Caisis.UI.ComboBox)con).Disabled = false;
}
SetStageSelects();
}
}
*/
override protected void SetStageSelects()
{
string selectedOpClinStageSystem;
string trimSelectedOpClinStageSystem;
if (Request.Form[OpClinStageSystem.UniqueID] != null && Request.Form[OpClinStageSystem.UniqueID] != "")
{
selectedOpClinStageSystem = Request.Form[OpClinStageSystem.UniqueID];
}
else
{
selectedOpClinStageSystem = OpClinStageSystem.Value;
}
// PageUtil.SelectDropDownItem(OpClinStageSystem, selectedOpClinStageSystem);
if (selectedOpClinStageSystem.StartsWith("UICC_").Equals(true))
{
trimSelectedOpClinStageSystem = selectedOpClinStageSystem.Remove(0, 4);
}
else
{
trimSelectedOpClinStageSystem = "_" + selectedOpClinStageSystem;
}
PageUtil.FillLkpDropDown(OpClinStageT, "ProstateClinStageT" + trimSelectedOpClinStageSystem, ViewState);
/*
if (OpClinStageSystem.Disabled.Equals(false) && selectedOpClinStageSystem != null && selectedOpClinStageSystem.Length > 0)
{
OpClinStageT.Disabled = false;
}
else
{
OpClinStageT.Disabled = true;
}
*/
if (OpClinStageSystem.Disabled.Equals(false))
{
OpClinStageT.Disabled = false;
}
else
{
OpClinStageT.Disabled = true;
}
string stageLkp = "ProstateClinStageT" + trimSelectedOpClinStageSystem;
ActivateStagingInfo(stageLkp);
}
protected void FillStagingInfo(string fieldName)
{
DataTable dt = PageUtil.RetrieveList(fieldName);
if (dt.Rows.Count < 1)
{
DataRow blankRow = dt.NewRow();
dt.Rows.Add(blankRow);
dt.Rows[0]["LkpDescription"] = "You must select a staging system to view available options.";
}
rptStages.DataSource = dt.DefaultView;
rptStages.DataBind();
// rptStages.DataSource = PageUtil.RetrieveList(fieldName).DefaultView;
// rptStages.DataBind();
}
protected void ActivateStagingInfo(string stageLkp)
{
if (OpClinStageSystem.Disabled.Equals(false))
{
if (OpClinStageT.Disabled.Equals(false))
{
FillStagingInfo(stageLkp);
StagingInfoLink.Attributes.Add("style", "cursor: hand;");
StagingInfoLink.Attributes.Add("onclick", "ShowStagingInfo();");
}
else
{
StagingInfoLink.Attributes.Add("onclick", "RequestStagingSystem();");
}
}
}
protected void StagingInfoDataBound(Object Sender, RepeaterItemEventArgs e)
{
System.Web.UI.HtmlControls.HtmlAnchor tStageLink;
tStageLink = (HtmlAnchor) e.Item.FindControl("tStageLink");
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
int linkIndex = e.Item.ItemIndex + 1;
tStageLink.Attributes.Add("onclick", "MM_showHideLayers('stagingInfoDiv','','hide'); setStageSelectValue('" + OpClinStageT.ClientID + "', " + linkIndex.ToString() + ");");
// tStageRadio.Name = "tStageRadio";
// tStageRadio.Value = e.Item.ItemIndex.ToString();
}
}
// need to turn staging wizard off if cancel is clicked
override public void DisableFormFields()
{
base.DisableFormFields();
StagingInfoLink.Attributes.Clear();
}
override public void PopulateForm(BizObject bz)
{
if (bz != null && bz.Tables[0].Rows.Count != 0)
{
base.PopulateForm(bz);
}
else
{
ResetFormFields();
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -