Exemplo n.º 1
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitData()
        {
            //初始化下拉框
            string        sql     = "select user_name from Base_UserInfo";
            StringBuilder sb_sql  = new StringBuilder(sql);
            DataTable     dt      = DataFactory.SqlDataBase().GetDataTableBySQL(sb_sql);
            var           builder = new System.Text.StringBuilder();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                builder.Append(String.Format("<option value='{0}'>", dt.Rows[i][0]));
            }
            Boss_list.InnerHtml = builder.ToString();

            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("Base_UserInfo", "User_ID", _key);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
                birthday.Text  = Convert.ToDateTime(birthday.Text).ToString("yyyy-MM-dd");
                join_date.Text = Convert.ToDateTime(join_date.Text).ToString("yyyy-MM-dd");
                if (out_date.Text == null || out_date.Text == "")
                {
                    out_date.Text = "";
                }
                else
                {
                    out_date.Text = Convert.ToDateTime(out_date.Text).ToString("yyyy-MM-dd");
                }
                User_Pwd.Value             = "*************";
                Boss_id.Value              = GetNameFromID(Boss_id.Value);
                AppendProperty_value.Value = systemidao.GetPropertyInstancepk(Property_Function, _key);
                strHRtemp = HR.Value;
            }
        }
Exemplo n.º 2
0
        private void InitData()
        {
            DataTable dt = DataFactory.SqlDataBase().GetDataTable("Base_Vendor");

            ControlBindHelper.BindHtmlSelect(dt, this.BV_ID, "BV_Name", "BV_ID", "开发商");
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("Contract_Mortgage", "UID", this.UID);

            if (ht.Count > 0 && ht != null)
            {
                DateTime NewDate;
                if (!string.IsNullOrEmpty(ht["M_REPLY_BEGIN"].ToString()))
                {
                    NewDate             = DateTime.Parse(ht["M_REPLY_BEGIN"].ToString());
                    ht["M_REPLY_BEGIN"] = NewDate.ToString("yyyy-MM-dd");
                }

                if (!string.IsNullOrEmpty(ht["M_REPLY_END"].ToString()))
                {
                    NewDate           = DateTime.Parse(ht["M_REPLY_END"].ToString());
                    ht["M_REPLY_END"] = NewDate.ToString("yyyy-MM-dd");
                }

                if (!string.IsNullOrEmpty(ht["M_SIGNDATE"].ToString()))
                {
                    NewDate          = DateTime.Parse(ht["M_SIGNDATE"].ToString());
                    ht["M_SIGNDATE"] = NewDate.ToString("yyyy-MM-dd");
                }
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 3
0
        private void InitData()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("MMS_MaterialInfo", "Material_ID", this._key);

            if (string.IsNullOrEmpty(this._key))
            {
                ht["Material_Code"] = BatchEvaluate.GeneralCode();
            }

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }

            foreach (DictionaryEntry element in ht)
            {
                string name = (string)element.Key;
                if (name == "MATERIAL_TYPE")
                {
                    this._Material_Type = (string)element.Value.ToString().Trim();
                }

                if (name == "DELETEMARK")
                {
                    this._Status = (string)element.Value.ToString().Trim();
                }
            }
        }
Exemplo n.º 4
0
        private void InitData()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("Contract_OneCard", "UID", this.UID);

            if (ht.Count > 0 && ht != null)
            {
                DateTime NewDate;
                if (!string.IsNullOrEmpty(ht["M_REPLY_BEGIN"].ToString()))
                {
                    NewDate             = DateTime.Parse(ht["M_REPLY_BEGIN"].ToString());
                    ht["M_REPLY_BEGIN"] = NewDate.ToString("yyyy-MM-dd");
                }

                if (!string.IsNullOrEmpty(ht["M_REPLY_END"].ToString()))
                {
                    NewDate           = DateTime.Parse(ht["M_REPLY_END"].ToString());
                    ht["M_REPLY_END"] = NewDate.ToString("yyyy-MM-dd");
                }

                if (!string.IsNullOrEmpty(ht["M_ISSUINGDATE"].ToString()))
                {
                    NewDate             = DateTime.Parse(ht["M_ISSUINGDATE"].ToString());
                    ht["M_ISSUINGDATE"] = NewDate.ToString("yyyy-MM-dd");
                }

                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// 基本信息
        /// </summary>
        public void InitBasicUserInfo()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("Base_UserInfo", "User_ID", _key);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
                if (ht["USER_SEX"].ToString() == "1")
                {
                    User_Sex.Text = "男士";
                }
                else
                {
                    User_Sex.Text = "女士";
                }
                if (ht["DELETEMARK"].ToString() == "2")
                {
                    DeleteMark.Text = "正常";
                }
                else if (ht["DELETEMARK"].ToString() == "3")
                {
                    DeleteMark.Text = "停用";
                }
                else if (ht["DELETEMARK"].ToString() == "1")
                {
                    DeleteMark.Text = "未授权";
                }
                AppendProperty_value.Value = systemidao.GetPropertyInstancepk(Property_Function, _key);
            }
        }
Exemplo n.º 6
0
        private void BindData()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("Contract_Type", "ContractType", this._Contract_Type);

            ControlBindHelper.SetWebControls(this.Page, ht);
            txt_Search.Value = this._txt_Search.Trim();
        }
Exemplo n.º 7
0
        private void InitData()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("User_Photo", "Card_ID", this._key);

            if (ht.Count > 0 && ht != null)
            {
                string _d1 = "/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAeAAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi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gIBAgUBBwUBAAAAAAAAAAERAgMhBDFBURITcWGBsdFSMxSRoSIyI1MRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/APoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEXaqcNpPoBIAAADjtVcWl6gdBw6AAIq9G3VWTa4qQJAja9K/2slPVwdTTUrVAdAAAAAAAAI2fbV24wmyRXmyPHjdkpYGX83L0r+/zKb3d7Oz4ss89f+VP0KrPus3CU8lwAuW8ypJRXT1+Zq2+V5aOzUNONDGs1UkvHRxzg0bXN3t07VVLXQDSefu/vv0R6B5+7++/d8ANW1a8FZfX4lspnmVxZLKa1bXVIv2uLLXLLq6qNZA1Zb+PHa3Th6mGtnjoslf7NtOz1jQs3t27KnJakKvIsVfFOs90KdZ+QEMmS+Rp3ctEqbjLSqrV6LhoVt2tbXWzLVfcpQu6F7ANeC9r4la3EtKNrbK6vyTx0kvAAAAAABG9qVq3eO3nJIqz4nlp2pw05QGPNkpdxSirVc4SbK2mnDUM24dpWj7r/wArclyKNxju81oq3PDT2AVUt47y6p9a2RvwZMV1/mlV81EHL7emSq7tLJcUQptXjreHNrVaXIDRK6mDdfffu+BH8fN9DH4+b6GBs2rXgrr1+JbK6nnfj5voZ2u3zdy/i1rxA17mlXitZqWlozNs2/K4+lmvOm8V0tXBl2dbeVuNEgK3jqnDyJXXHjE+pGzvVw7T6OTTl2bbdqPjrDM18d6OLVaA37fu8Ne5y+OpaQxOzx1dtLRqTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//Z";
                if (ht.Contains("SCENEHEAD"))
                {
                    string _SceneHead = ht["SCENEHEAD"].ToString().Trim();
                    this.ViewState["SceneHead"] = _SceneHead;
                    SceneHeadData = string.Format("data:image/jpg;base64,{0}", string.IsNullOrEmpty(_SceneHead) ? _d1 : _SceneHead);
                }
                if (ht.Contains("SCENEWORKER"))
                {
                    string _SceneWorker = ht["SCENEWORKER"].ToString().Trim();
                    this.ViewState["SceneWorker"] = _SceneWorker;
                    SceneWorkerData = string.Format("data:image/jpg;base64,{0}", string.IsNullOrEmpty(_SceneWorker) ? _d1 : _SceneWorker);
                }
                if (ht.Contains("SCENEGROUP"))
                {
                    string _SceneGroup = ht["SCENEGROUP"].ToString().Trim();
                    this.ViewState["SceneGroup"] = _SceneGroup;
                    SceneGroupData = string.Format("data:image/jpg;base64,{0}", string.IsNullOrEmpty(_SceneGroup) ? _d1 : _SceneGroup);
                }
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 8
0
        /// <summary>
        /// 编辑绑定
        /// </summary>
        private void EditData()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("Base_UserInfo", "User_ID", hdUserId.Value);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
                User_Pwd.Value = "*************";
                string rs = ht["RoomState".ToUpper()].ToString();
                if (rs == "1")
                {
                    lbRoomState.Attributes.Add("class", "checked");
                }
                else
                {
                    lbRoomState.Attributes.Add("class", "");
                }
                if (ht["Organization_ID".ToUpper()] != null && ht["Organization_ID".ToUpper()].ToString() != "")
                {
                    hdOrgId.Value = ht["Organization_ID".ToUpper()].ToString();
                }

                string hd = ht["HotelData".ToUpper()].ToString();
                if (hd == "1")
                {
                    lbHotelData.Attributes.Add("class", "checked");
                }
                else
                {
                    lbHotelData.Attributes.Add("class", "");
                }

                string ps = ht["PublicShow".ToUpper()].ToString();
                if (ps == "1")
                {
                    lbPublicShow.Attributes.Add("class", "checked");
                }
                else
                {
                    lbPublicShow.Attributes.Add("class", "");
                }

                string rm = ht["ReserveMoney".ToUpper()].ToString();
                if (rm == "1")
                {
                    lbReserveMoney.Attributes.Add("class", "checked");
                }
                else
                {
                    lbReserveMoney.Attributes.Add("class", "");
                }

                Hashtable htRole = DataFactory.SqlDataBase().GetHashtableById("Base_UserRole", "User_ID", hdUserId.Value);
                if (htRole.Count > 0 && htRole != null)
                {
                    ddlUser_Role.SelectedValue = htRole["Roles_ID".ToUpper()].ToString();
                }
            }
        }
Exemplo n.º 9
0
 /// <summary>
 /// 得到一个对象实体
 /// </summary>
 public void InitControl()
 {
     if (!string.IsNullOrEmpty(_key))
     {
         base_news = base_newsibll.GetEntity(_key);
         ControlBindHelper.SetWebControls(this.Page, base_news);
     }
 }
Exemplo n.º 10
0
 /// <summary>
 /// 得到一个对象实体
 /// </summary>
 public void InitControl()
 {
     if (!string.IsNullOrEmpty(_key))
     {
         bpms_appendproperty = bpms_appendpropertyibll.GetEntity(_key);
         ControlBindHelper.SetWebControls(this.Page, bpms_appendproperty);
     }
 }
Exemplo n.º 11
0
 /// <summary>
 /// 得到一个对象实体
 /// </summary>
 public void InitControl()
 {
     if (!string.IsNullOrEmpty(_key))
     {
         bpms_items = bpms_itemsibll.GetEntity(_key);
         ControlBindHelper.SetWebControls(this.Page, bpms_items);
     }
 }
Exemplo n.º 12
0
 /// <summary>
 /// 得到一个对象实体
 /// </summary>
 public void InitControl()
 {
     if (!string.IsNullOrEmpty(_key))
     {
         qy_application = qy_applicationibll.GetEntity(_key);
         ControlBindHelper.SetWebControls(this.Page, qy_application);
     }
 }
Exemplo n.º 13
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitData()
        {
            Hashtable ht = customerManager.GetCustomerByID(_key);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 14
0
        private void BindData2()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("Pledge_Sundries", "UID", UID);

            if (ht.Count > 0)
            {
                ControlBindHelper.SetWebControls(this.table3, ht);
            }
        }
Exemplo n.º 15
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitData()
        {
            Hashtable ht = platformeManager.GetPlatformInfoByID(_key);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 16
0
        private void BindEdit()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("Pledge_Right", "PRID", this.PRID);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 17
0
        private void BindEdit()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("User_Guarantee", "UGID", this.UGID);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 18
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitData()
        {
            Hashtable ht = manager.GetVehicleUseInfoByID(_key);

            if (ht != null && ht.Count > 0)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 19
0
 /// <summary>
 /// 得到一个对象实体
 /// </summary>
 public void InitControl()
 {
     InitBindDrop();
     if (!string.IsNullOrEmpty(_key))
     {
         bpms_roles = bpms_rolesibll.GetEntity(_key);
         ControlBindHelper.SetWebControls(this.Page, bpms_roles);
     }
 }
Exemplo n.º 20
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitData()
        {
            Hashtable ht = manager.GetServiceStationByID(_key);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 21
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitData()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("Base_Roles", "Roles_ID", _key);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitData()
        {
            Hashtable ht = vehicleMaintainLogManager.GetVehicleMaintainLogInfoByID(_key);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 23
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitData()
        {
            Hashtable ht = manager.GetChargingPointByID(_key);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 24
0
        private void InitData()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("EnterpriseMore", "E_enterpriseID", this._key);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 25
0
        private void EditData()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("Base_UserInfo", "User_ID", hdUserId.Value);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 26
0
        private void InitData()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("WF_Activity", "id", this.PID);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 27
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitData()
        {
            Hashtable ht = raiseReplyManager.GetUserRaiseReplyByID(_key);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 28
0
        private void InitData()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById(DataSql, "Card_ID", this.Card_ID);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 29
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitData()
        {
            Hashtable ht = userInfoManager.GetUserInfoByUserID(_key);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }
Exemplo n.º 30
0
        private void InitData()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("Pledge_Estate", "UID", this._key);

            if (ht.Count > 0 && ht != null)
            {
                ControlBindHelper.SetWebControls(this.Page, ht);
            }
        }