예제 #1
0
 /// <summary>
 /// �����û���Guid��ȡ�û������������
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 protected string GetUserGroup(object obj)
 {
     string UserGuid = obj as string;
     string UserGroup = "";
     try
     {
         UserGroup = new JCPT().SelectUserInfo(UserGuid).GroupName;
     }
     catch { }
     return UserGroup;
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         CompanyInfo CI = new JCPT().SelectCompanyInfo(Session["ORGID"].ToString());
         // CI.Address (企业地址);  CI.Contactor(联系人); CI.ContactorTel(联系人电话); CI.FullName(企业全称);CI.ShortName(企业简称)
         // CI.LawMan(法人); CI.PostCode(邮编)
         this.txtApply.Text = CI.FullName;
         this.txtLawMan.Text = CI.LawMan;
         this.txtAddress.Text = CI.Address;
         this.txtCode.Text = CI.PostCode;
         this.txtLinker.Text = CI.Contactor;
         lblApplyPerson.Text = Convert.ToString(Session["RealName"]);
         lblApplyDate.Text = DateTime.Now.ToShortDateString();
         ViewState["Guid"] = Guid.NewGuid().ToString();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //根据企业的ID,调用企业的基本信息的实体类,将基本信息自动填入文本框中
         CompanyInfo CI = new JCPT().SelectCompanyInfo(Session["ORGID"].ToString());
         // CI.Address (企业地址);  CI.Contactor(联系人); CI.ContactorTel(联系人电话); CI.FullName(企业全称);CI.ShortName(企业简称)
         // CI.LawMan(法人); CI.PostCode(邮编)
         this.txtCMPNAME.Text = CI.FullName;
         this.txtCMPADDRESS.Text = CI.Address;
         DateTime dt=DateTime.Now;
         this.lblCode.Text = dt.Year.ToString() + dt.Month.ToString() + dt.Day.ToString() + dt.Hour.ToString() + dt.Minute.ToString() + dt.Second.ToString();
         //生产新的实例Guid,上传附件需要用到
         ViewState["Guid"] = Guid.NewGuid().ToString();
     }
     new CommonFun().GetAttachment(Convert.ToString(ViewState["Guid"]), phAtt, "Line", "Delete", 1);
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         CompanyInfo CI = new JCPT().SelectCompanyInfo(Session["ORGID"].ToString());
         // CI.Address (企业地址);  CI.Contactor(联系人); CI.ContactorTel(联系人电话); CI.FullName(企业全称);CI.ShortName(企业简称)
         // CI.LawMan(法人); CI.PostCode(邮编)
         this.txtApply.Text = CI.FullName;
         this.txtLawMen.Text = CI.LawMan;
         this.txtUserAdd.Text = CI.Address;
         this.txtLinkName.Text = CI.Contactor;
         this.txtLinkTel.Text = CI.ContactorTel;
         lblApplyPerson.Text = Convert.ToString(Session["RealName"]);
         lblApplyDate.Text = DateTime.Now.ToShortDateString();
         ViewState["Guid"] = Guid.NewGuid().ToString();
         ViewState["Corp_Code"] = CI.CorpCode;
     }
     new CommonFun().GetAttachment(Convert.ToString(ViewState["Guid"]), phAtt, "Line", "Delete", 1);
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                new CawBindInfoDB().BindParaType(this.drgType, "QYLX");
                CompanyInfo CI = new JCPT().SelectCompanyInfo(Session["ORGID"].ToString());
                // CI.Address (企业地址);  CI.Contactor(联系人); CI.ContactorTel(联系人电话); CI.FullName(企业全称);CI.ShortName(企业简称)
                // CI.LawMan(法人); CI.PostCode(邮编)
                this.txtApply.Text = CI.FullName;
                this.txtLawMen.Text = CI.LawMan;
                this.txtLinkName.Text = CI.Contactor;
                this.txtLinkTel.Text = CI.ContactorTel;
                this.txtOperClass.Text = new CawBussinessLicenceDB().GetScopeByID(Session["ORGID"].ToString());

                lblApplyPerson.Text = Convert.ToString(Session["RealName"]);
                lblApplyDate.Text = DateTime.Now.ToShortDateString();
                ViewState["Guid"] = Guid.NewGuid().ToString();
            }
            new CommonFun().GetAttachment(Convert.ToString(ViewState["Guid"]), phAtt, "Line", "Delete", 1);
        }
        private void AddFirstGroup()
        {
            JCPT Jcpt = new JCPT();  //操作基础平台类
            string OrgID = Convert.ToString(Session["ORGID"]);
            List<GroupInfo> GIList = new List<GroupInfo>();
            GIList = Jcpt.SelectGroupInfo(OrgID);
            ZJGEportTreeNode node;
            for (int i = 0; i < GIList.Count; i++)
            {
                if (GIList[i].TreeCode.Length == 4) //4位一级,该处为第一层
                {
                    node = new ZJGEportTreeNode();
                    node.Text = GIList[i].GroupName;
                    node.Value = GIList[i].GroupID + "&" + GIList[i].TreeCode;
                    node.PopulateOnDemand = true;
                    TreeView1.Nodes.Add(node);
                }

            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //根据企业的ID,调用企业的基本信息的实体类,将基本信息自动填入文本框中
                CompanyInfo CI = new JCPT().SelectCompanyInfo(Session["ORGID"].ToString());
                // CI.Address (企业地址);  CI.Contactor(联系人); CI.ContactorTel(联系人电话); CI.FullName(企业全称);CI.ShortName(企业简称)
                // CI.LawMan(法人); CI.PostCode(邮编)
                txtACode.Text = CI.PostCode;
                txtApplicant.Text = Session["RealName"].ToString();
                txtCorAddress.Text = CI.Address;
                txtCorName.Text = CI.FullName;
                txtLawMan.Text = CI.LawMan;
                txtLMCode.Text = CI.PostCode;
                dtApplyDate.Text = DateTime.Now.ToShortDateString();

                //生产新的实例Guid,上传附件需要用到
                ViewState["Guid"] = Guid.NewGuid().ToString();
            }
            new CommonFun().GetAttachment(Convert.ToString(ViewState["Guid"]), phAtt, "Line", "Delete", 1);
        }
        private void AddChildNode(ZJGEportTreeNode pNode)
        {
            JCPT Jcpt = new JCPT();  //操作基础平台类

            string OrgID = Convert.ToString(Session["ORGID"]);
            string GroupID = pNode.Value.Split('&')[0]; //
            string TreeCode = pNode.Value.Split('&')[1]; //
            List<GroupInfo> GIList = new List<GroupInfo>();
            GIList = Jcpt.SelectGroupInfo(OrgID);  //所有的树节点
            List<UserInfo> UIList = new List<UserInfo>();
            UIList = Jcpt.SelectUserInfoByGroup(OrgID, GroupID);//该节点下的所有人员信息

            ZJGEportTreeNode node;
            //加载子部门
            for (int i = 0; i < GIList.Count; i++)
            {
                if (GIList[i].TreeCode.Length == (TreeCode.Length + 4) && GIList[i].TreeCode.StartsWith(TreeCode)) //4位一级,该处为下一层
                {
                    node = new ZJGEportTreeNode();
                    node.Text = GIList[i].GroupName;
                    node.Value = GIList[i].GroupID + "&" + GIList[i].TreeCode;
                    node.PopulateOnDemand = true;
                    pNode.ChildNodes.Add(node);
                }
            }
            //加载人员
            for (int j = 0; j < UIList.Count; j++)
            {
                node = new ZJGEportTreeNode();
                node.Text = UIList[j].RealName;
                node.Value = UIList[j].UserID;
                node.PopulateOnDemand = false;
                node.CtrlClickFunction = "AutoSetPValue(this,'" + node.Value + "','" + node.Text + "')";
                pNode.ChildNodes.Add(node);
            }
        }
예제 #9
0
        public userInfo()
        {
            string ORG_ID = HttpContext.Current.Session["ORGID"].ToString();
            m_strLogin_name = HttpContext.Current.Session["UserName"].ToString();
            m_strUser = HttpContext.Current.Session["RealName"].ToString();

            CompanyInfo tabCorp = new JCPT().SelectCompanyInfo(ORG_ID);
            m_strCompany = tabCorp.CorpCode;
            _strCorp_name = tabCorp.FullName;
            string Type_Name = tabCorp.OrgType;
            _strIdentCard = HttpContext.Current.Session["ID_NO"].ToString();

            if (Type_Name == ConfigurationManager.AppSettings["ENTNAME"])
            {
                DataTable tab = new DataBase().GetUser_Info(_strIdentCard);
                if (tab.Rows.Count > 0)
                {
                    _strPhone = tab.Rows[0]["DEC_PHONE"].ToString().Trim();
                    _strCertCode = tab.Rows[0]["DEC_CERT"].ToString().Trim();
                    _strDec_ID = tab.Rows[0]["DEC_ID"].ToString().Trim();
                }
                else
                {
                    _strCorp_name = new DataBase().GetCorp_Name(m_strCompany);
                    m_strUser = HttpContext.Current.Session["RealName"].ToString();
                    if (_strCorp_name == "")
                    {
                        _strCorp_name = new DataBase().GetAgent_Name(m_strCompany);
                    }
                }
            }
            else
            {
                m_strUser = HttpContext.Current.Session["RealName"].ToString();
            }
        }
예제 #10
0
        private void InitiData()
        {
            string IsExist="";
            string Guid = Convert.ToString(Request.QueryString["Guid"]);
            if (Guid != null) //传递是参数,则是明细查看,将按钮全部不可见
            {
                this.trbtn.Visible = false;
                this.Td1.Visible = false;
                this.GridView1.DataSource = CCLD.Select(Guid);
                this.GridView1.DataBind();
            }
            else
            {
                this.lblName.Text = Session["CompanyName"].ToString();
                Guid = Session["ORGID"].ToString();
                this.Sp1.Visible = false;
            }

            List<Detail_CAW_COMPANY> DataList = CCD.GetCompany(Guid, out IsExist);
            if (IsExist == "1")
            {
                this.txtAddress.Text = DataList[0].ADDRESS;
                this.txtCode.Text = DataList[0].POSTALCODE;
                this.txtEqu.Text = DataList[0].EQUIPMENT;
                this.txtEvent.Text = DataList[0].EVENT;
                this.txtFax.Text = DataList[0].FAX;
                this.txtMail.Text = DataList[0].EMAIL;
                this.txtManager.Text = DataList[0].MGRSYS;
                this.txtNet.Text = DataList[0].WEBSITE;
                this.txtRecent.Text = DataList[0].PRODUCTIONSTATUS;
                this.txtView.Text = DataList[0].SURVEY;
                this.txtMail.Text = DataList[0].EMAIL;
                this.lblName.Text = DataList[0].NAME;
                this.txtCheckOpion.Text = DataList[0].CHECKOPION;
                for (int i = 0; i < this.cblCorpType.Items.Count; i++)
                {
                    if (DataList[0].CORPTYPE.IndexOf(cblCorpType.Items[i].Text.Trim()) >= 0)
                    {
                        this.cblCorpType.Items[i].Selected = true;
                    }
                }
                this.btnAdd.Visible = false;
                this.btnSubmit.Visible = this.btnMod.Visible = (DataList[0].DATASTATUS == "0" || DataList[0].DATASTATUS == "3" || DataList[0].DATASTATUS == "4") ? true : false;
                this.ViewState["CurrStatus"] = DataList[0].DATASTATUS;
                this.lblStatus.Text = DataList[0].DATASTATUS_NAME;

            }
            else
            {
                CompanyInfo CI = new JCPT().SelectCompanyInfo(Session["ORGID"].ToString());
                txtAddress.Text = CI.Address;
                txtCode.Text = CI.PostCode;
                this.btnMod.Visible = false;
                this.btnSubmit.Visible = false;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //根据企业的ID,调用企业的基本信息的实体类,将基本信息自动填入文本框中
                CompanyInfo CI = new JCPT().SelectCompanyInfo(Session["ORGID"].ToString());
                //// CI.Address (企业地址);  CI.Contactor(联系人); CI.ContactorTel(联系人电话); CI.FullName(企业全称);CI.ShortName(企业简称)
                //// CI.LawMan(法人); CI.PostCode(邮编)
                txtLAWMAN_SIGN.Text = CI.LawMan;
                dtApplyDate.Text = DateTime.Now.ToShortDateString();
                //从开工申请中获取项目名称
                List<Detail_CAW_BANK_STARTWORK> ProjectList = new CawBankStartWork().GetProject(Session["ORGID"].ToString());
                for (int i = 0; i < ProjectList.Count; i++)
                {
                    ddlProjectName.Items.Add(new ListItem(ProjectList[i].PROJECTNAME, ProjectList[i].GUID));
                }

                //生产新的实例Guid,上传附件需要用到
                ViewState["Guid"] = Guid.NewGuid().ToString();
            }
            new CommonFun().GetAttachment(Convert.ToString(ViewState["Guid"]), phAtt, "Line", "Delete", 1);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //根据企业的ID,调用企业的基本信息的实体类,将基本信息自动填入文本框中
                CompanyInfo CI = new JCPT().SelectCompanyInfo(Session["ORGID"].ToString());
                // CI.Address (企业地址);  CI.Contactor(联系人); CI.ContactorTel(联系人电话); CI.FullName(企业全称);CI.ShortName(企业简称)
                // CI.LawMan(法人); CI.PostCode(邮编)
                this.txtUNITNAME.Text = CI.FullName;
                this.txtLINKMAN.Text = CI.Contactor;
                this.txtMOBILE.Text = CI.ContactorTel;
                this.txtLEGALPERSON.Text = CI.LawMan;

                ViewState["Guid"] = Guid.NewGuid().ToString();
            }
            //new CommonFun().GetAttachment(Convert.ToString(ViewState["Guid"]), null, "Line", "Delete", 1);
        }