private void LoadOfficeProcess()
    {
        XmlDocument doc = new XmlDocument();

        ManageOfficeProcess OfficeProcess = new ManageOfficeProcess();
        doc = OfficeProcess.GetProcessForModule(ddlProcess.SelectedValue, new Guid(ddlOfficeName.SelectedValue));

        string filterVerification = "/Process/VerificationList";
        string filterApproval = "/Process/ApprovalList";
        XmlNode VerificationItems = doc.SelectSingleNode(filterVerification);
        XmlNode ApprovalItems = doc.SelectSingleNode(filterApproval);

        if (VerificationItems == null)
        {
            ViewState["VerificationList"] = "<VerificationList/>";
            xdsVerificationList.Data = (string)ViewState["VerificationList"];
            gvVerificationList.DataBind();
        }
        else
        {
            ViewState["VerificationList"] = VerificationItems.OuterXml;
            xdsVerificationList.Data = VerificationItems.OuterXml;
            gvVerificationList.DataBind();
        }
        if (ApprovalItems == null)
        {
            ViewState["ApprovalList"] = "<ApprovalList/>";
            xdsApprovalList.Data = (string)ViewState["ApprovalList"];
            gvApprovalList.DataBind();
        }
        else
        {
            ViewState["ApprovalList"] = ApprovalItems.OuterXml;
            xdsApprovalList.Data = ApprovalItems.OuterXml;
            gvApprovalList.DataBind();
        }
    }
Exemple #2
0
 public static XmlDocument GetProcessForModule(string moduleCode, Guid OfficeId)
 {
     ManageOfficeProcess OfficeProcess = new ManageOfficeProcess();
     return OfficeProcess.GetProcessForModule(moduleCode, OfficeId);
 }