本文整理汇总了C#中ViewBase.GetFieldVals方法的典型用法代码示例。如果您正苦于以下问题:C# ViewBase.GetFieldVals方法的具体用法?C# ViewBase.GetFieldVals怎么用?C# ViewBase.GetFieldVals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ViewBase
的用法示例。
在下文中一共展示了ViewBase.GetFieldVals方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnOK_Click
/// <summary>
/// 脚本回传
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnOK_Click(object sender, EventArgs e)
{
String strIds = String.Empty;
String strNos = String.Empty;
String strNames = String.Empty;
if (UCIsSingle)
{
strIds = this.gvCompany.SelectedKey;
}
else
{
strIds = SysString.GetStringFormatForList(this.gvCompany.SelectedKeys, ",");
}
vb = OADept.GetCompany(this.ddlType.SelectedIndex + 1, this.txtSearchText.Text.Trim());
if (String.IsNullOrEmpty(strIds) == false)
{
if (vb != null)
{
vb.Condition = "a.ID in (" + strIds + ")";
strIds = vb.GetFieldVals("ID", ";");
strNos = vb.GetFieldVals("No", ";");
strNames = vb.GetFieldVals("Name", ";")+";";
}
}
String strScript = String.Empty;
if (this.UCIDControl != String.Empty)
{
strScript += base.GetJSscriptValue(this.UCIDControl, strIds);
}
if (this.UCNoControl != String.Empty)
{
strScript += base.GetJSscriptValue(this.UCNoControl, strNos);
strScript += base.GetJSscriptTitle(this.UCNoControl, strNames);
}
if (this.UCNameControl != String.Empty)
{
strScript += base.GetJSscriptValue(this.UCNameControl, strNames);
strScript += base.GetJSscriptTitle(this.UCNameControl, strNos);
}
if (UCIsSingle)
{
strScript += String.Format("parent.ClosePopDiv('{0}')", base.divPopDivID + base.UCID);
}
//组成一整条js后运行
ClientScriptM.ResponseScript(this, strScript);
}