本文整理汇总了C#中PccMsg.AddToNode方法的典型用法代码示例。如果您正苦于以下问题:C# PccMsg.AddToNode方法的具体用法?C# PccMsg.AddToNode怎么用?C# PccMsg.AddToNode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PccMsg
的用法示例。
在下文中一共展示了PccMsg.AddToNode方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GenMasterTableData
//.........这里部分代码省略.........
myTempMsg = new PccMsg();
myTempMsg.CreateFirstNode("Href", PICKFACT + "?ApID=" + m_ApID + "&SrcUp_Id=" + m_SrcUp_Id + "&Up_Id=" + myMasterRow["Up_Id"].ToString() + "&Method=" + GetMethod("PickFactToFgrpFunc", "Fgrp_Id", "Fgrp_Nm", myMasterRow) + "&QueryCondition=" + GetQueryCondition());
myTempMsg.CreateFirstNode("Text", myMasterRow["Fgrp_Nm"].ToString().Trim());
myRow.AddLinkHrefCell(myTempMsg.GetXmlStr, 56);
}
else
{
myRow.AddTextCell(myMasterRow["Fgrp_Nm"].ToString(), 56);
}
//廠別檢視
myTempMsg = new PccMsg();
myTempMsg.CreateFirstNode("ToolTip", "檢視所屬廠別");
myTempMsg.CreateFirstNode("LinkID", "HLinkView" + myMasterRow["Fgrp_Id"].ToString());
myTempMsg.CreateFirstNode("Image", Session["PageLayer"] + "images/detal.gif");
myTempMsg.CreateFirstNode("ClickFun", "doSection(view_F" + MasterCount.ToString() + ")");
myRow.AddLinkCell(myTempMsg.GetXmlStr, 12);
//使用者檢視
myTempMsg = new PccMsg();
myTempMsg.CreateFirstNode("ToolTip", "檢視所屬使用者");
myTempMsg.CreateFirstNode("LinkID", "HLinkView" + myMasterRow["Fgrp_Id"].ToString());
myTempMsg.CreateFirstNode("Image", Session["PageLayer"] + "images/detal.gif");
myTempMsg.CreateFirstNode("ClickFun", "doSection(view_U" + MasterCount.ToString() + ")");
myRow.AddLinkCell(myTempMsg.GetXmlStr, 12);
//管理
myTempMsg = new PccMsg();
//判斷是否和上層ID是一樣的
if (myMasterRow["Fgrp_Id"].ToString() != Request.Params["SrcUp_Id"])
{
//先加入修改的Item
if (myAuth.IsUpdateAuth())
{
myTempMsg.CreateNode("LinkButton");
myTempMsg.AddToNode("Image", Session["PageLayer"] + "images/edit.gif");
myTempMsg.AddToNode("ToolTip", myLabel.GetErrMsg("lbl0014", "SysManager/ApManager"));
myTempMsg.AddToNode("href", MYURL + "?ApID=" + m_ApID + "&SrcUp_Id=" + m_SrcUp_Id + "&Up_Id=" + myMasterRow["Up_Id"].ToString());
myTempMsg.AddToNode("QueryCondition", GetQueryCondition());
myTempMsg.AddToNode("Method", GetMethod("MasterUpdateFunc", "Fgrp_Id", "Fgrp_Nm", myMasterRow));
myTempMsg.UpdateNode();
}
if (del_auth)
{
//再加入刪除的Item
myTempMsg.CreateNode("LinkButton");
myTempMsg.AddToNode("Image", Session["PageLayer"] + "images/del.gif");
myTempMsg.AddToNode("ToolTip", myLabel.GetErrMsg("lbl0015", "SysManager/ApManager"));
myTempMsg.AddToNode("href", MYURL + "?ApID=" + m_ApID + "&SrcUp_Id=" + m_SrcUp_Id + "&Up_Id=" + myMasterRow["Up_Id"].ToString());
myTempMsg.AddToNode("QueryCondition", GetQueryCondition());
myTempMsg.AddToNode("Method", GetMethod("MasterDelFunc", "Fgrp_Id", "Fgrp_Nm", myMasterRow));
myTempMsg.UpdateNode();
}
//再加入加入使用者的Item
if (myAuth.IsAddAuth())
{
myTempMsg.CreateNode("LinkButton");
myTempMsg.AddToNode("Image", Session["PageLayer"] + "images/add.gif");
myTempMsg.AddToNode("ToolTip", "加入使用者");
myTempMsg.AddToNode("href", PICKUSER + "?ApID=" + m_ApID + "&SrcUp_Id=" + m_SrcUp_Id + "&Up_Id=" + myMasterRow["Up_Id"].ToString());
myTempMsg.AddToNode("QueryCondition", GetQueryCondition());
myTempMsg.AddToNode("Method", GetMethod("AddUserFunc", "Fgrp_Id", "Fgrp_Nm", myMasterRow));
myTempMsg.UpdateNode();
}
}
myRow.AddMultiLinkCell(myTempMsg.GetXmlStr, 15);
TblDs_Fgrp.Rows.Add(myRow.Row);
示例2: GetQueryCondition
private string GetQueryCondition()
{
PccMsg myMsg = new PccMsg();
myMsg.CreateNode("QueryCondition");
myMsg.AddToNode("TxtQueryFgrpNm", TxtQueryFgrpNm.Text);
myMsg.UpdateNode();
return myMsg.GetXmlStr;
}
示例3: GenMasterTableData
private void GenMasterTableData(ref PccErrMsg myLabel)
{
//取得Login的使用者是否有刪除的權限
GetMenuAuth myAuth = new GetMenuAuth();
bool del_auth = myAuth.IsDeleteAuth();
PccBsSystemForC.bs_ApManager mybs = new PccBsSystemForC.bs_ApManager(ConfigurationManager.AppSettings["ConnectionType"], ConfigurationManager.AppSettings["ConnectionServer"], ConfigurationManager.AppSettings["ConnectionDB"], ConfigurationManager.AppSettings["ConnectionUser"], ConfigurationManager.AppSettings["ConnectionPwd"], Session["UserIDAndName"].ToString(), ConfigurationManager.AppSettings["EventLogPath"]);
PccMsg myMsg = new PccMsg();
myMsg.CreateFirstNode("StartRecord", PageControl1.StartRecord.ToString());
myMsg.CreateFirstNode("PageSize", PageControl1.PageSize.ToString());
myMsg.CreateFirstNode("Vpath", ConfigurationManager.AppSettings["vpath"].ToString());
myMsg.CreateFirstNode("ApName", txtApName.Text);
string strXML = myMsg.GetXmlStr;
DataSet myApDs = mybs.DoReturnDataSet("GetApByVpath", strXML, "");
DataTable myApData = myApDs.Tables["Ap"];
if (myApData.Rows.Count > 0)
{
int MasterCount = 0;
string MasterStyle = "";
PccMsg myTempMsg;
PccRow myRow;
//取出資料總筆數
PageControl1.TotalSize = myApDs.Tables["TCounts"].Rows[0]["Counts"].ToString();
PageControl1.BuildPager();
//明細資料類別之共同參數
myMsg.LoadXml();
myMsg.CreateFirstNode("TableClass", "ActDocTB");
myMsg.CreateFirstNode("RowHeaderClass", "TDShowHeader");
myMsg.CreateFirstNode("RowClass1", "ffd000");
myMsg.CreateFirstNode("RowClass2", "fff000");
string strClassXML = myMsg.GetXmlStr;
XmlElement myNode;
//明細資料的欄位參數
string strOrgFields5 = "link-新增選單-" + MENUADDNEW + "?ApID=" + Request.Params["ApID"].ToString() + "&Type=New&QueryCondition=" + GetQueryCondition();
string[] Fields = { "編號", "選單編碼", "選單名稱", "選單連結", "管理區", strOrgFields5 };
int[] FieldsPercent = { 5, 8, 17, 50, 10, 10 };
string[] FieldsItem = { "--NO--", "menu_no", "menu_nm", "menu_link", "manage_mk", "menu_id" };
string[] FieldsType = new string[6];
FieldsType[0] = "--NO--";
FieldsType[1] = "<PccMsg><Type>Text</Type></PccMsg>";
FieldsType[2] = "<PccMsg><Type>Text</Type></PccMsg>";
FieldsType[3] = "<PccMsg><Type>Text</Type></PccMsg>";
FieldsType[4] = "<PccMsg><Type>Text</Type></PccMsg>";
//設定明細欄位中多個Link Image的參數
myMsg.LoadXml();
myMsg.CreateFirstNode("Type", "MultiLink");
//設定第一個更新選單的Image參數
myMsg.CreateNode("LinkButton");
myMsg.AddToNode("Image", Session["PageLayer"] + "images/edit.gif");
myMsg.AddToNode("ToolTip", "更新選單");
myMsg.AddToNode("href", MENUADDNEW + "?ApID=" + Request.Params["ApID"].ToString());
myMsg.AddToNode("QueryCondition", GetQueryCondition());
myNode = myMsg.CreateParentNode("Method");
myMsg.AddToNode("MethodName", "DetailUpdFunc", ref myNode);
myMsg.AddToNode("Key", "menu_id", ref myNode);
myMsg.AddToNode("KeyOther", "menu_nm", ref myNode);
myMsg.UpdateNode(myNode);
myMsg.UpdateNode();
if (del_auth)
{
//設定第二個刪除選單的Image參數
myMsg.CreateNode("LinkButton");
myMsg.AddToNode("Image", Session["PageLayer"] + "images/del.gif");
myMsg.AddToNode("ToolTip", "刪除選單");
myMsg.AddToNode("href", APMANAGE + "?ApID=" + Request.Params["ApID"].ToString());
myMsg.AddToNode("QueryCondition", GetQueryCondition());
myNode = myMsg.CreateParentNode("Method");
myMsg.AddToNode("MethodName", "DetailDelFunc", ref myNode);
myMsg.AddToNode("Key", "menu_id", ref myNode);
myMsg.AddToNode("KeyOther", "menu_nm", ref myNode);
myMsg.UpdateNode(myNode);
myMsg.UpdateNode();
}
FieldsType[5] = myMsg.GetXmlStr;
//要取得明細資料的Table變數
DataTable tblMenuByApID;
//再利用此Table再取得其每一列的資料,再Gen出主要的Table Row.
foreach (DataRow myMasterRow in myApData.Rows)
{
if (MasterCount % 2 == 0) MasterStyle = "eee000"; else MasterStyle = "fff000";
myRow = new PccRow();
myRow.SetRowCss(MasterStyle);
//編號
myRow.AddTextCell(PageControl1.ListCount, 5);
//應用程式編碼
myRow.AddTextCell(myMasterRow["ap_id"].ToString(), 10);
//應用程式名稱
//.........这里部分代码省略.........
示例4: GetQueryCondition
private string GetQueryCondition()
{
PccMsg myMsg = new PccMsg();
myMsg.CreateNode("QueryCondition");
myMsg.AddToNode("txtApName", txtApName.Text);
myMsg.UpdateNode();
return myMsg.GetXmlStr;
}
示例5: GenMultiLinkXML
private string GenMultiLinkXML(DataRow myDRow, string strXML)
{
PccMsg myMsg = new PccMsg(strXML);
PccMsg myTempMsg = new PccMsg();
foreach (XmlNode myNode in myMsg.QueryNodes("LinkButton"))
{
myTempMsg.CreateNode("LinkButton");
myTempMsg.AddToNode("Image", myMsg.Query("Image", myNode));
myTempMsg.AddToNode("ToolTip", myMsg.Query("ToolTip", myNode));
myTempMsg.AddToNode("href", myMsg.Query("href", myNode));
myTempMsg.AddToNode("QueryCondition", myMsg.Query("QueryCondition", myNode));
myTempMsg.AddToNode("Method", GetMethod(myMsg.Query("Method/MethodName", myNode), myMsg.Query("Method/Key", myNode), myMsg.Query("Method/KeyOther", myNode), myDRow));
myTempMsg.UpdateNode();
}
return myTempMsg.GetXmlStr;
}
示例6: GenMasterTableData
//.........这里部分代码省略.........
if (MasterCount % 2 == 0) MasterStyle = "cssGridRowAlternating"; else MasterStyle = "cssGridRow";
myRow = new PccRow("", HorizontalAlign.Center, 0, 0);
myRow.SetRowCss(MasterStyle);
//編號
myRow.AddTextCell(PageControl1.ListCount, 10);
//群組名稱(點選群組名稱可把使用者加入此群組)
myTempMsg = new PccMsg();
myTempMsg.CreateFirstNode("ToolTip", myMasterRow["group_nm"].ToString());
myTempMsg.CreateFirstNode("LinkID", "ULink" + myMasterRow["group_id"].ToString());
myTempMsg.CreateFirstNode("Href", USERADDCOMEON + "?ApID=" + CheckQueryString("ApID") + "&GroupID=" + myMasterRow["group_id"].ToString() + "&GroupNm=" + myMasterRow["group_nm"].ToString() + "&QueryCondition=" + GetQueryCondition());
myTempMsg.CreateFirstNode("Text", myMasterRow["group_nm"].ToString());
myRow.AddLinkHrefCell(myTempMsg.GetXmlStr, 60);
//檢視使用者
myTempMsg = new PccMsg();
myTempMsg.CreateFirstNode("ToolTip", myLabel.GetErrMsg("lbl0020", "ADTPurDoc/GroupManage"));
myTempMsg.CreateFirstNode("LinkID", "HLinkViewU" + myMasterRow["group_id"].ToString());
myTempMsg.CreateFirstNode("Image", Session["PageLayer"] + "images/detal.gif");
myTempMsg.CreateFirstNode("ClickFun", "doSection(view_U" + MasterCount.ToString() + ")");
myRow.AddLinkCell(myTempMsg.GetXmlStr, 10);
//檢視選單
myTempMsg = new PccMsg();
myTempMsg.CreateFirstNode("ToolTip", myLabel.GetErrMsg("lbl0021", "ADTPurDoc/GroupManage"));
myTempMsg.CreateFirstNode("LinkID", "HLinkViewM" + myMasterRow["group_id"].ToString());
myTempMsg.CreateFirstNode("Image", Session["PageLayer"] + "images/detal.gif");
myTempMsg.CreateFirstNode("ClickFun", "doSection(view_M" + MasterCount.ToString() + ")");
myRow.AddLinkCell(myTempMsg.GetXmlStr, 10);
//群組管理
myTempMsg.LoadXml();
//加入群組管理修改及刪除的Item
if (myAuth.IsUpdateAuth())
{
myTempMsg.CreateNode("LinkButton");
myTempMsg.AddToNode("Image", Session["PageLayer"] + "images/edit.gif");
myTempMsg.AddToNode("ToolTip", "修改群組");
myTempMsg.AddToNode("href", GROUPADDNEW + "?ApID=" + Request.Params["ApID"].ToString());
myTempMsg.AddToNode("QueryCondition", GetQueryCondition());
myTempMsg.AddToNode("Method", GetMethod("MasterUpdateFunc", "group_id", "group_nm", myMasterRow));
myTempMsg.UpdateNode();
}
if (myAuth.IsDeleteAuth())
{
myTempMsg.CreateNode("LinkButton");
myTempMsg.AddToNode("Image", Session["PageLayer"] + "images/del.gif");
myTempMsg.AddToNode("ToolTip", "刪除群組");
myTempMsg.AddToNode("href", GROUPMANAGE + "?ApID=" + Request.Params["ApID"].ToString());
myTempMsg.AddToNode("QueryCondition", GetQueryCondition());
myTempMsg.AddToNode("Method", GetMethod("MasterDelFunc", "group_id", "group_nm", myMasterRow));
myTempMsg.UpdateNode();
}
myRow.AddMultiLinkCell(myTempMsg.GetXmlStr, 10);
tblGroup.Rows.Add(myRow.Row);
//設定使用者明細資料類別之參數
strTemp = "<PccMsg>";
strTemp += "<group_id>" + myMasterRow["group_id"].ToString() + "</group_id>";
strTemp += "<ap_id>" + m_apid + "</ap_id>";
strTemp += "<user_id>" + Session["UserID"].ToString() + "</user_id>";
strTemp += "<GroupFilter>" + strGroupFilter + "</GroupFilter>";
strTemp += "<FactFilter>" + strFactFilter + "</FactFilter>";
strTemp += "</PccMsg>";
tblUserGroup = mybs.DoReturnDataSet("GetUserByGroupID", strTemp, "").Tables["UserGroup"];
PccDetailTable myDTable = new PccDetailTable("UDT" + myMasterRow["group_id"].ToString());
myDTable.ClassXML = strClassXML;
示例7: GenMasterTableData
private void GenMasterTableData(ref PccErrMsg myLabel)
{
PccBsSystemForC.bs_UserManager mybs = new PccBsSystemForC.bs_UserManager(ConfigurationManager.AppSettings["ConnectionType"], ConfigurationManager.AppSettings["ConnectionServer"], ConfigurationManager.AppSettings["ConnectionDB"], ConfigurationManager.AppSettings["ConnectionUser"], ConfigurationManager.AppSettings["ConnectionPwd"], Session["UserIDAndName"].ToString(), ConfigurationManager.AppSettings["EventLogPath"]);
PccMsg myMsg = new PccMsg();
myMsg.CreateFirstNode("StartRecord", PageControl1.StartRecord.ToString());
myMsg.CreateFirstNode("PageSize", PageControl1.PageSize.ToString());
myMsg.CreateFirstNode("ap_id", m_apid);
myMsg.CreateFirstNode("user_desc", user_desc.Text);
//string strXML = myMsg.GetXmlStr;
GetMenuAuth myAuth = new GetMenuAuth();
//判斷是否要利用事業群來分設權限 20041118
myMsg.CreateFirstNode("user_id", Session["UserID"].ToString());
myMsg.CreateFirstNode("order", "");
if (ConfigurationManager.AppSettings[m_apid + "-FactByGroup"] != null && ConfigurationManager.AppSettings[m_apid + "-FactByGroup"].ToString() == "Y")
{
//判斷此使用者是否可以分配不同的事業群權限
if (!myAuth.IsReportAuth())
{
//表示他必須區分事業群
myMsg.CreateFirstNode("GroupFilter", "Y");
}
else
{
myMsg.CreateFirstNode("GroupFilter", "N");
}
}
else
{
myMsg.CreateFirstNode("GroupFilter", "N");
}
if (ConfigurationManager.AppSettings[m_apid + "-FactFilter"] != null && ConfigurationManager.AppSettings[m_apid + "-FactFilter"].ToString() == "Y")
{
//表示他必須區分廠管理 20041118 注意要區別廠管理的先決條件是要區分事業群
myMsg.CreateFirstNode("FactFilter", "Y");
}
DataSet myAskDs = mybs.DoReturnDataSet("GetAskByApID", myMsg.GetXmlStr, "");
PccMsg myTempMsg = new PccMsg();
DataTable myAskData = myAskDs.Tables["Ask"];
if (myAskData != null && myAskData.Rows.Count > 0)
{
int MasterCount = 0;
string MasterStyle = "";
PccRow myRow;
//取出資料總筆數
PageControl1.TotalSize = myAskDs.Tables["TCounts"].Rows[0]["Counts"].ToString();
PageControl1.BuildPager();
//再利用此Table再取得其每一列的資料,再Gen出主要的Table Row.
foreach (DataRow myMasterRow in myAskData.Rows)
{
if (MasterCount % 2 == 0) MasterStyle = "cssGridRowAlternating"; else MasterStyle = "cssGridRow";
myRow = new PccRow();
myRow.SetRowCss(MasterStyle);
//編號
myRow.AddTextCell(PageControl1.ListCount, 5);
//姓名
myRow.AddTextCell(myMasterRow["user_desc"].ToString(), 10);
//電子郵件帳號
myRow.AddTextCell(myMasterRow["email"].ToString(), 33);
//廠別
myRow.AddTextCell(myMasterRow["fact_nm"].ToString(), 22);
//Email
//myRow.AddTextCell(myMasterRow["email"].ToString(),25);
//分機
myRow.AddTextCell(myMasterRow["ext"].ToString(), 5);
//群組
myRow.SetDefaultCellData("", HorizontalAlign.Center, 0, 0);
myRow.AddControl(GetGroup(myMasterRow["ask_id"].ToString()), 15);
//核準
myRow.AddTextCell(GetCheck(myMasterRow["ask_id"].ToString()), 5);
//駁回
myTempMsg.LoadXml();
myTempMsg.CreateNode("LinkButton");
myTempMsg.AddToNode("Image", Session["PageLayer"] + "images/del.gif");
myTempMsg.AddToNode("ToolTip", "駁回此使用者之申請");
myTempMsg.AddToNode("href", CHECKUSERMANAGE + "?ApID=" + Request.Params["ApID"].ToString());
myTempMsg.AddToNode("QueryCondition", GetQueryCondition());
myTempMsg.AddToNode("Method", GetMethod("MasterDelFunc", "ask_id", "user_desc", myMasterRow));
myTempMsg.UpdateNode();
myRow.AddMultiLinkCell(myTempMsg.GetXmlStr, 5);
tblCheckUser.Rows.Add(myRow.Row);
MasterCount += 1;
} // end of foreach datarow
} // end of if table count is 0
else
{
PageControl1.TotalSize = "0";
PageControl1.BuildPager();
}
//.........这里部分代码省略.........
示例8: GetQueryCondition
private string GetQueryCondition()
{
PccMsg myMsg = new PccMsg();
myMsg.CreateNode("QueryCondition");
myMsg.AddToNode("user_desc", user_desc.Text);
myMsg.UpdateNode();
return myMsg.GetXmlStr;
}
示例9: GenMasterTableData
//.........这里部分代码省略.........
PageControl1.TotalSize = ds.Tables["GetQFactCount"].Rows[0]["Counts"].ToString();
PageControl1.BuildPager();
//明細資料類別之共同參數
myMsg.LoadXml();
myMsg.CreateFirstNode("TableClass", "cssGridTable");
myMsg.CreateFirstNode("RowHeaderClass", "TDShowHeader");
myMsg.CreateFirstNode("RowClass1", "ffd000");
myMsg.CreateFirstNode("RowClass2", "cssGridRow");
string strClassXML = myMsg.GetXmlStr;
//XmlElement myNode;
//明細資料的欄位參數
string[] MFields = { "編號", "使用者", "廠別", "電子郵件帳號", "刪除" };
int[] MFieldsPercent = { 5, 15, 40, 30, 10 };
//string[] MFieldsItem = {"--NO--", "user_desc","fact_nm","email","uf_id$user_desc"};
string[] MFieldsItem = { "--NO--", "user_desc", "fact_nm", "email", "uf_id" };
string[] MFieldType = new string[5];
MFieldType[0] = "--NO--";
MFieldType[1] = "<PccMsg><Type>Text</Type></PccMsg>";
MFieldType[2] = "<PccMsg><Type>Text</Type></PccMsg>";
MFieldType[3] = "<PccMsg><Type>Text</Type></PccMsg>";
//設定明細欄位中多個Link Image的參數
myMsg.LoadXml();
//因為要設定其相關權限已改由廠群組來設定,所以在此不能再有刪除的動作了 20050529
/*if (myAuth.IsDeleteAuth())
{
myMsg.CreateFirstNode("Type","MultiLink");
myMsg.CreateNode("LinkButton");
myMsg.AddToNode("Image",Session["PageLayer"] + "images/del.gif");
myMsg.AddToNode("ToolTip","刪除此使用者與此廠別之關係");
myMsg.AddToNode("href",USERFACTMANAGE + "?ApID=" + m_ap_id);
myMsg.AddToNode("QueryCondition",GetQueryCondition());
myNode = myMsg.CreateParentNode("Method");
myMsg.AddToNode("MethodName","MasterDelFunc",ref myNode);
myMsg.AddToNode("Key","uf_id",ref myNode);
myMsg.AddToNode("KeyOther","user_desc",ref myNode);
myMsg.UpdateNode(myNode);
myMsg.UpdateNode();
}
else
{
myMsg.CreateFirstNode("Type","Space");
}*/
myMsg.CreateFirstNode("Type", "Space");
MFieldType[4] = myMsg.GetXmlStr;
//再利用此Table再取得其每一列的資料,再Gen出主要的Table Row.
foreach (DataRow myMasterRow in myTable.Rows)
{
if (MasterCount % 2 == 0) MasterStyle = "cssGridRowAlternating"; else MasterStyle = "cssGridRow";
myTempMsg = new PccMsg();
myRow = new PccRow(MasterStyle, HorizontalAlign.Center, VerticalAlign.Middle, 0);
//編號
myRow.AddTextCell(PageControl1.ListCount, 5);
//廠別編號
myRow.AddTextCell(myMasterRow["fact_no"].ToString(), 10);
//廠別名稱
//因為要設定其相關權限已改由廠群組來設定,所以在此不能再有新增的動作了 20050529
/*if (myAuth.IsAddAuth())
示例10: GetQueryCondition
private string GetQueryCondition()
{
PccMsg myMsg = new PccMsg();
myMsg.CreateNode("QueryCondition");
myMsg.AddToNode("ddlUserType", ddlUserType.SelectedItem.Value);
myMsg.AddToNode("txtUserName", txtUserName.Text);
myMsg.UpdateNode();
return myMsg.GetXmlStr;
}
示例11: GenMasterTableData
//.........这里部分代码省略.........
if (myMasterRow["remark"].ToString() == "N")
myRow.AddTextCell("", 4);
else
myRow.AddTextCell("*", 4);
//姓名
myRow.AddTextCell(myMasterRow["user_desc"].ToString(), 8);
//部門
//myRow.AddTextCell(myMasterRow["dept_desc"].ToString(),10);
//廠別
myRow.AddTextCell(myMasterRow["fact_nm"].ToString(), 10);
//帳號
//myRow.AddTextCell(myMasterRow["user_nm"].ToString(),10);
//電子郵件
myRow.AddTextCell(CheckDBNull(myMasterRow["email"]), 48);
//分機
myRow.AddTextCell(CheckDBNull(myMasterRow["ext"]), 5);
//檢視
myTempMsg = new PccMsg();
myTempMsg.CreateFirstNode("ToolTip", myLabel.GetErrMsg("lbl0026", "ADTPurDoc/GroupManage"));
myTempMsg.CreateFirstNode("LinkID", "HLinkView" + ((int)((decimal)myMasterRow["user_id"])).ToString());
myTempMsg.CreateFirstNode("Image", Session["PageLayer"] + "images/detal.gif");
myTempMsg.CreateFirstNode("ClickFun", "doSection(view_M" + MasterCount.ToString() + ")");
myRow.AddLinkCell(myTempMsg.GetXmlStr, 5);
//管理
if (myMasterRow["mana_mk"].ToString() == "N")
myRow.AddTextCell("<input type=checkbox value=N disabled>", 5);
else
myRow.AddTextCell("<input type=checkbox value=Y checked disabled>", 5);
//群組
myTempMsg.LoadXml();
//加入群組的Item
myTempMsg.CreateNode("LinkButton");
myTempMsg.AddToNode("Image", Session["PageLayer"] + "images/add.gif");
myTempMsg.AddToNode("ToolTip", myLabel.GetErrMsg("lbl0001", "ADTPurDoc/GroupManage"));
myTempMsg.AddToNode("href", USERJOINGROUP + "?ApID=" + Request.Params["ApID"].ToString());
myTempMsg.AddToNode("QueryCondition", GetQueryCondition());
myTempMsg.AddToNode("Method", GetMethod("MasterGroupFunc", "user_id", "user_desc", myMasterRow));
myTempMsg.UpdateNode();
myRow.AddMultiLinkCell(myTempMsg.GetXmlStr, 5);
//使用者管理
myTempMsg.LoadXml();
//先加入修改的Item
if (myAuth.IsUpdateAuth()) //判斷是否有修改使用者的權限 20041118
{
myTempMsg.CreateNode("LinkButton");
myTempMsg.AddToNode("Image", Session["PageLayer"] + "images/edit.gif");
myTempMsg.AddToNode("ToolTip", myLabel.GetErrMsg("lbl0028", "ADTPurDoc/GroupManage"));
//myTempMsg.AddToNode("href",USERADDNEW + "?ApID=" + Request.Params["ApID"].ToString());
//Modify by Lemor Beacause must redirect to PfsBaseWeb
myTempMsg.AddToNode("href", USERADDNEW + "?ApID=" + Request.Params["ApID"].ToString() + "&UserID=" + myMasterRow["user_id"].ToString() + "&AcctionType=UpdByAdmin&UserAccount=" + CheckDBNull(myMasterRow["email"]) + "&ul=" + ConfigurationManager.AppSettings["myServer"] + ConfigurationManager.AppSettings["vpath"] + "/SysManager/UserManage/UserManage104.aspx?ApID=" + Request.Params["ApID"].ToString());
myTempMsg.AddToNode("Method", GetMethod("MasterUpdateFunc", "user_id", "user_desc", myMasterRow));
myTempMsg.UpdateNode();
}
//再加入刪除的Item
if (myAuth.IsDeleteAuth()) //判斷是否有修改使用者的權限 20041118
{
myTempMsg.CreateNode("LinkButton");
myTempMsg.AddToNode("Image", Session["PageLayer"] + "images/del.gif");
myTempMsg.AddToNode("ToolTip", myLabel.GetErrMsg("lbl0029", "ADTPurDoc/GroupManage"));
myTempMsg.AddToNode("href", USERMANAGE + "?ApID=" + Request.Params["ApID"].ToString());
myTempMsg.AddToNode("QueryCondition", GetQueryCondition());
myTempMsg.AddToNode("Method", GetMethod("MasterDelFunc", "user_id", "user_desc", myMasterRow));
myTempMsg.UpdateNode();
}
if (myMasterRow["remark"].ToString() != "N")
示例12: GetQueryCondition
/*private string GetQueryCondition()
{
string strQueryCondition = "<PccMsg><QueryCondition><fact_no>" + txtfactno.Text + "</fact_no><user_nm>" + txtusernm.Text + "</user_nm></QueryCondition></PccMsg>";
return strQueryCondition;
}*/
// ting
private string GetQueryCondition()
{
PccMsg myMsg = new PccMsg();
myMsg.CreateNode("QueryCondition");
myMsg.AddToNode("txtusernm", txtusernm.Text);
myMsg.AddToNode("txtfactno", txtfactno.Text);
myMsg.UpdateNode();
return myMsg.GetXmlStr;
}
示例13: GenMasterTableData
//.........这里部分代码省略.........
//要取得明細資料的Table變數
myTempMsg.ClearContext();
myTempMsg.CreateFirstNode("Ap_Id", m_ap_id);
myTempMsg.CreateFirstNode("User_Id", myMasterRow["user_id"].ToString());
myTempMsg.CreateFirstNode("LoginUser_Id", Session["UserID"].ToString());
myFgrpData = mybs.DoReturnDataSet("get_DS_FGRPByUserID", myTempMsg.GetXmlStr, string.Empty).Tables["FgrpInUser"];
myFgrpTable = new Table();
GenFgrpTableHeader(ref myFgrpTable);
int DetailCount = 1;
foreach (DataRow myDetailRow in myFgrpData.Rows)
{
if (DetailCount % 2 == 0) MasterStyle = "eee000"; else MasterStyle = "ffd000";
myRow = new PccRow(MasterStyle, HorizontalAlign.Center, VerticalAlign.Middle, 0);
//編號
myRow.AddTextCell(DetailCount.ToString(), 10);
//廠群組名稱
myRow.AddTextCell(myDetailRow["Fgrp_Nm"].ToString(), 70);
//檢視
myTempMsg = new PccMsg();
myTempMsg.CreateFirstNode("ToolTip", "檢視所屬廠別");
myTempMsg.CreateFirstNode("LinkID", "HLinkView" + myDetailRow["Fgrp_Id"].ToString());
myTempMsg.CreateFirstNode("Image", Session["PageLayer"] + "images/detal.gif");
myTempMsg.CreateFirstNode("ClickFun", "doSection(view_D" + MasterCount.ToString() + "_" + DetailCount.ToString() + ")");
myRow.AddLinkCell(myTempMsg.GetXmlStr, 10);
//管理
myTempMsg = new PccMsg();
//先加入修改的Item
if (myAuth.IsDeleteAuth())
{
//再加入刪除的Item
myTempMsg.CreateNode("LinkButton");
myTempMsg.AddToNode("Image", Session["PageLayer"] + "images/del.gif");
myTempMsg.AddToNode("ToolTip", "刪除此使用者與廠群組的關係");
myTempMsg.AddToNode("href", MYURL + "?ApID=" + m_ap_id + "&User_Desc=" + myMasterRow["user_desc"].ToString() + "&User_Id=" + myMasterRow["user_id"].ToString());
myTempMsg.AddToNode("QueryCondition", GetQueryCondition());
myTempMsg.AddToNode("Method", GetMethod("DetailDelFunc", "Fgrp_Id", "Fgrp_Nm", myDetailRow));
myTempMsg.UpdateNode();
}
myRow.AddMultiLinkCell(myTempMsg.GetXmlStr, 10);
myFgrpTable.Controls.Add(myRow.Row);
//要取得廠別明細資料的Table變數
myTempMsg.ClearContext();
myTempMsg.CreateFirstNode("Fgrp_Id", myDetailRow["Fgrp_Id"].ToString());
myTempMsg.CreateFirstNode("LoginUser_Id", Session["UserID"].ToString());
myFactData = mybs.DoReturnDataSet("get_DS_FACTGRPByFgrpID", myTempMsg.GetXmlStr, string.Empty).Tables["DS_FACTGRP"];
myFactTable = new Table();
GenFactTableHeader(ref myFactTable);
int FactDetailCount = 1;
foreach (DataRow myFactDetailRow in myFactData.Rows)
{
if (DetailCount % 2 == 0) MasterStyle = "eee000"; else MasterStyle = "ffd000";
myRow = new PccRow(MasterStyle, HorizontalAlign.Center, VerticalAlign.Middle, 0);
//編號
myRow.AddTextCell(FactDetailCount.ToString(), 10);
//廠別
myRow.AddTextCell(myFactDetailRow["Fact_No"].ToString(), 10);
//廠別名稱
myRow.AddTextCell(myFactDetailRow["Fact_Nm"].ToString(), 40);
//事業群