本文整理汇总了C#中PccMsg.Load方法的典型用法代码示例。如果您正苦于以下问题:C# PccMsg.Load方法的具体用法?C# PccMsg.Load怎么用?C# PccMsg.Load使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PccMsg
的用法示例。
在下文中一共展示了PccMsg.Load方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetImgConditionsType
public static string GetImgConditionsType(string type)
{
string dataPath = System.Web.HttpContext.Current.Server.MapPath("~") + "/XmlDoc/Data.xml";
PccMsg myMsg = new PccMsg();
myMsg.Load(dataPath);
return myMsg.Query("IMGConditions/" + type);
}
示例2: SetMenu
private void SetMenu()
{
string strLeftMenu = string.Empty;
int AreaCount = 1;
//LoginInfoUser of AP Detail Menu.
PccCommonForC.PccErrMsg myLabel = new PccCommonForC.PccErrMsg(Server.MapPath(Session["PageLayer"] + "XmlDoc"), Session["CodePage"].ToString(), "Label");
string strDetailPageLayer = Session["PageLayer"].ToString();
if (Request.QueryString["ApID"] != null)
{
//APID
string strApID = Request.Params["ApID"];
string ApFolder = "", MenuItem = "", MenuName = "";
PccCommonForC.PccMsg myMsg = new PccCommonForC.PccMsg();
myMsg.LoadXml(Session["XmlLoginInfo"].ToString());
if (strApID.Length > 0 && strDetailPageLayer.Length > 0)
{
//strDetailPageLayer = strDetailPageLayer.Substring(0,strDetailPageLayer.Length - 3);
if (myMsg.QueryNodes("Authorize") != null)
{
foreach (XmlNode myNode in myMsg.QueryNodes("Authorize"))
{
if (strApID != myMsg.Query("APID", myNode)) continue;
//Folder
ApFolder = GetApFolder(myMsg.Query("APLink", myNode));
if (myMsg.QueryNodes("ApMenu", (XmlElement)myNode) != null)
{
foreach (XmlNode myDetailNode in myMsg.QueryNodes("ApMenu", (XmlElement)myNode))
{
if (myMsg.Query("show_mk", myDetailNode).Equals("Y"))
{
if (myMsg.Query("MenuLink", myDetailNode).IndexOf(".asmx", 0) > 0)
continue;
if (Session["CodePage"].ToString() == "CP950")
{
SaveDataToHashMenu(myMsg.Query("MenuManage", (XmlElement)myDetailNode), strDetailPageLayer, ApFolder, myMsg.Query("MenuNM", (XmlElement)myDetailNode), myMsg.Query("MenuLink", (XmlElement)myDetailNode));
}
else
{
MenuItem = "M" + strApID + int.Parse(myMsg.Query("MENUID", myDetailNode)).ToString();
MenuName = myLabel.GetErrMsg(MenuItem, "MenuItem");
SaveDataToHashMenu(myMsg.Query("MenuManage", (XmlElement)myDetailNode), strDetailPageLayer, ApFolder, MenuName, myMsg.Query("MenuLink", (XmlElement)myDetailNode));
}
// SaveDataToHashMenu(myMsg.Query("MenuManage", (XmlElement)myDetailNode), strDetailPageLayer, ApFolder, myMsg.Query("MenuNM", (XmlElement)myDetailNode), myMsg.Query("MenuLink", (XmlElement)myDetailNode));
}
}
}
}
}
}
strLeftMenu = "<div class='glossymenu'>";
string strLang = "";
ArrayList arrMenu = new ArrayList();
if (Session["CodePage"].ToString() != "CP950")
{
strLang = "_VN";
}
myMsg = new PccMsg();
myMsg.Load(Server.MapPath(Session["PageLayer"] + @"XmlDoc\ApMenu" + strLang + ".xml"));
if (myMsg.QueryNodes("Applications/Application") != null)
{
foreach (XmlNode apNode in myMsg.QueryNodes("Applications/Application"))
{
if (myMsg.Query("ApID", apNode) == Request.QueryString["ApID"])
{
if (myMsg.QueryNodes("ApAreas/Area", apNode) != null)
{
foreach (XmlNode areaNode in myMsg.QueryNodes("ApAreas/Area", apNode))
{
string AreaMK = myMsg.Query("AreaMK", areaNode);
string AreaName = myMsg.Query("AreaName", areaNode);
if (m_Menu.ContainsKey(AreaMK))//xet quyen han thay menu
{
strLeftMenu += "<a class='menuitem submenuheader' style='cursor:pointer'><span class='area_item'><img src='" + ResolveUrl("~/") + "Pub/EasyLayout/ImgBody/group_item.png" + "' border='0'>" + AreaName.ToUpper() + "</span></a>";
strLeftMenu += "<div class='submenu'>";
strLeftMenu += "<ul>";
//add child menu
strLeftMenu += m_Menu[AreaMK].ToString();
strLeftMenu += "</ul>";
strLeftMenu += "</div>"; //end class=menu_body
}
}
}
break;
}
}
//.........这里部分代码省略.........