Beispiel #1
0
 private void btnAdd_Click(object sender, System.EventArgs e)
 {
     Class cls = new Class();
     HttpCookie UserCookie = Request.Cookies["Username"];
     String Username = Server.UrlDecode(Request.Cookies["UserName"].Value);
     try
     {
         cls.AddClass(Int32.Parse(ClassID), this.txtAClassName.Text, this.txtAClassRemark.Text, 1, Username, DateTime.Now, 0);
         Response.Write("<script language=javascript>alert('��ӳɹ�!');parent.LeftFrame.location='ProjectTreeView.aspx?classID=" + ClassID + "';</script>");
     }
     catch (Exception ex)
     {
         UDS.Components.Error.Log(ex.ToString());
         Server.Transfer("../Error.aspx");
     }
     finally
     {
         cls = null;
     }
 }
Beispiel #2
0
        /// <summary>
        /// ���޸�ʱ����
        /// </summary>
        private void PopulateReviseData()
        {
            SqlDataReader dataReader = null;
            Class cls = new Class();
            try
            {
                dataReader = cls.GetClassDetail(Int32.Parse(ClassID));
                dataReader.Read();
                this.txtAClassName.Text = dataReader[1].ToString();
                this.txtAClassRemark.Text = dataReader[2].ToString();
                cls = null;
               //dataReader = null;
            }
            catch (Exception ex)
            {
                UDS.Components.Error.Log(ex.ToString());
                Server.Transfer("../Error.aspx");

            }
            finally
            {
                if (dataReader != null)
                {
                    dataReader.Close();
                    dataReader = null;
                }
            }
        }
Beispiel #3
0
 private void PopulateData()
 {
     Class cls = new Class();
     this.lblParentNodeName.Text = cls.GetClassName(Int32.Parse(ClassID));
     cls = null;
 }
Beispiel #4
0
        public void JumpPage()
        {
            Class newClass		= new Class ();
            string action		= Request.QueryString["Action"].ToString();
            string classID		= Request.QueryString["classID"].ToString();
            string classtype    = newClass.GetClassType(Int32.Parse(classID));
            string className = newClass.GetClassName(int.Parse(classID));
            string url = "";
            Response.Cookies["ActiveNodeID"].Value = classID.ToString();

            switch (action)
            {
                case "0":
                    url = Page.ResolveUrl("Document/DeliverDocument.aspx?ClassID=" + classID);
                    break;
                case "1":
                    switch (classtype)
                    {
                        case "0":
                            url = Page.ResolveUrl("Project.aspx?classID=" + classID);
                            break;
                        case "1":
                            url = Page.ResolveUrl("Document/ListView.aspx?classID="+classID);
                            break;
                        case "2":

                            break;
                        case "3":
                            url = Page.ResolveUrl("BBS/Catalog.aspx?classID="+classID);
                            break;
                        case "4":
                            url = Page.ResolveUrl("../Staff/ManageStaff.aspx?DisplayType=0");
                            break;
                        case "5":
                            url = Page.ResolveUrl("Task/Listview.aspx");
                            break;
                        case "6":
                            url = Page.ResolveUrl("../Schedule/TaskList.aspx");
                            break;
                        case "7":
                            url = Page.ResolveUrl("Mail/Index.aspx?classID="+classID);
                            break;
                        case "8":
                            url = Page.ResolveUrl("NewDoc/Listview.aspx");
                            break;
                        case "9":
                            url = Page.ResolveUrl("DocumentFlow/ListDocument.aspx");
                            break;
                        case "10":
                            url = Page.ResolveUrl("../CM/ClientListview.aspx");
                            break;
                        case "11":
                            url = Page.ResolveUrl("../LinkMan/Listview.aspx");
                            break;
                        case "12":
                            url=Page.ResolveUrl("~/SubModule/position/Index.aspx");
                            //Response.Write("<script laguage='javascript'>parent.location='" + url + "';</script>";
                            break;
                        case "13":
                            url=Page.ResolveUrl("~/SubModule/role/Index.aspx");
                            //Response.Write("<script laguage='javascript'>parent.location='" + url + "';</script>";
                            break;
                        case "14":
                            url = Page.ResolveUrl("../WorkAttendance/SearchData.aspx");
                            break;
                        case "15":
                            url = Page.ResolveUrl("../WorkAttendance/Set.aspx");
                            break;
                        case "16":
                            url = Page.ResolveUrl("../SM/Index.aspx");
                            break;
                        case "17":
                            url = Page.ResolveUrl("../USBKey/USBKey_setup.aspx");
                            break;
                        case "100":
                            url = Page.ResolveUrl("ManageQuery/ManageQuery.aspx");
                            break;
                        case "18":
                            url = Page.ResolveUrl("~/SubModule/Bulletin/Index.html");
                            break;
                        case "19":
                            url = Page.ResolveUrl("~/SubModule/AM/index.aspx");
                            break;
                        default:
                            if (int.Parse(classtype) < 0)
                            {
                                url = Page.ResolveUrl("~/SubModule/UnitiveDocument/DocumentFlow/NewDocument.aspx?FlowID=" +
                                    Math.Abs(int.Parse(classtype)).ToString());
                            }
                            else
                            {

                            }
                            break;
                    }
                    break;
                default:
                    break;
            }

            ClientScript.RegisterStartupScript(this.GetType(), "redirect", "<script language='javascript'>parent.navigatemf('" + className + "', '" + url + "', '" + className + "');</script>");
        }
Beispiel #5
0
        /// <summary>
        /// �������б���г�ʼ��
        /// </summary>
        private void PopulateListView()
        {
            Class cls = new Class();
            listImportance.Items.Clear();
            listImportance.Items.Add(new ListItem("һ��","1"));
            listImportance.Items.Add(new ListItem("��Ҫ","2"));
            listImportance.Items.Add(new ListItem("�ر���Ҫ","3"));

            cblistAttribute.Items.Add(new ListItem("��ͨ�ʼ�","1"));
            cblistAttribute.Items.Add(new ListItem("�ʼ��鵵","2"));
            //cblistAttribute.Items.Add(new ListItem("�᰸����","3"));
            cblistAttribute.Items[0].Selected=true;

            cls = null;
        }
Beispiel #6
0
        public void JumpPage()
        {
            Class newClass		= new Class ();
            string action		= Request.QueryString["Action"].ToString();
            string classID		= Request.QueryString["classID"].ToString();
            string classtype    = newClass.GetClassType(Int32.Parse(classID));
            string url;
            Response.Cookies["ActiveNodeID"].Value = classID.ToString();
            //Response.Write(action+","+classID+","+classtype);
            switch (action)
            {
                case "0":
                    Response.Redirect("Document/DeliverDocument.aspx?ClassID="+classID);
                    break;
                case "1":
                    switch (classtype)
                    {
                        case "0": //��������
                            Response.Redirect("Project.aspx?classID="+classID);
                            break;
                        case "1":
                            Response.Redirect("Document/ListView.aspx?classID="+classID);
                            break;
                        case "2":

                            break;
                        case "3":
                            Response.Redirect("BBS/Catalog.aspx?classID="+classID);
                            break;
                        case "4":
                            Response.Redirect("../Staff/ManageStaff.aspx?DisplayType=0");
                            break;
                        case "5":
                            Response.Redirect("Task/Listview.aspx");
                            break;
                        case "6":
                            Response.Redirect("../Schedule/TaskList.aspx");
                            break;
                        case "7":
                            Response.Redirect("Mail/Index.aspx?classID="+classID);
                            break;
                        case "8":
                            Response.Redirect("NewDoc/Listview.aspx");
                            break;
                        case "9":
                            Response.Redirect("DocumentFlow/ListDocument.aspx");
                            break;
                        case "10":
                            Response.Redirect("../CM/ClientListview.aspx");
                            break;
                        case "11":
                            Response.Redirect("../LinkMan/Listview.aspx");
                            break;
                        case "12":
                            url="../position/index.htm";
                            Response.Write("<script laguage='javascript'>parent.location='" + url + "';</script>");
                            break;
                        case "13":
                            url="../role/Index.aspx";
                            Response.Write("<script laguage='javascript'>parent.location='" + url + "';</script>");
                            break;
                        case "14":
                            Response.Redirect("../WorkAttendance/SearchData.aspx");
                            break;
                        case "15":
                            Response.Redirect("../WorkAttendance/Set.aspx");
                            break;
                        case "16":
                            Response.Redirect("../SM/Index.aspx");
                            break;
                        case "17":
                            Response.Redirect("../USBKey/USBKey_setup.aspx");
                            break;
                        case "100":
                            Response.Redirect("ManageQuery/ManageQuery.aspx");
                            break;
                        case "50":
                            Response.Redirect("Board/BoardManagement.aspx");
                            break;
                        case "52":
                            Response.Redirect("News/NewsManagement.aspx");
                            break;
                        case "55": //�ĵ�����
                            Response.Redirect("Document/ListView.aspx?classID=" + classID);
                            break;

                        case "57": //�칫�������
                            Response.Redirect("Document/OfficeMonitor.htm?classID=" + classID);
                            break;

                        case "58": //�ƻ��ܽ�
                            Response.Redirect("../Plan/PlanManage.aspx?classID=" + classID);
                            break;

                        case "59": //��ԴԤ��
                            Response.Redirect("../Resources/ResourceManage.aspx?classID=" + classID);
                            break;

                        case "60": //�豸����
                            Response.Redirect("../Asset/AssetMange.aspx?classID=" + classID);
                            break;
                        default:
                            break;
                    }
                    break;
                default:
                    break;
            }
        }