Ejemplo n.º 1
0
        public ChangePasswordForm(string strTitle, bool bIsModal, CardManage.Model.UserInfo objUserInfo, CardManage.Model.WindowSize objWindowSize = null, CardManage.Model.Flag objFlag = null)
            : base(strTitle, bIsModal, objUserInfo, objWindowSize, objFlag)
        {
            InitializeComponent();
            this.Text = strTitle;

            txtUserName.Text = objUserInfo.UserName;
        }
Ejemplo n.º 2
0
        public UserViewForm(string strTitle, bool bIsModal, CardManage.Model.UserInfo objUserInfo, CardManage.Model.WindowSize objWindowSize = null, CardManage.Model.Flag objFlag = null)
            : base(strTitle, bIsModal, objUserInfo, objWindowSize, objFlag)
        {
            InitializeComponent();
            this.Text = strTitle;

            this._CurrentAction = (EAction)objFlag.Keyword1;
            if (objFlag.Keyword2 != null)
            {
                switch (this._CurrentAction)
                {
                case EAction.Create:
                    this._CurrentFlag = Convert.ToInt32(objFlag.Keyword2);
                    break;

                case EAction.Edit:
                    this._CurrentID = Convert.ToInt32(objFlag.Keyword2);
                    break;
                }
            }
        }
Ejemplo n.º 3
0
 public CommunicationForm(string strTitle, bool bIsModal, CardManage.Model.UserInfo objUserInfo, CardManage.Model.WindowSize objWindowSize = null, CardManage.Model.Flag objFlag = null)
     : base(strTitle, bIsModal, objUserInfo, objWindowSize, objFlag)
 {
     InitializeComponent();
     this.Text = strTitle;
 }
Ejemplo n.º 4
0
        public BuildingViewForm(string strTitle, bool bIsModal, CardManage.Model.UserInfo objUserInfo, CardManage.Model.WindowSize objWindowSize = null, CardManage.Model.Flag objFlag = null)
            : base(strTitle, bIsModal, objUserInfo, objWindowSize, objFlag)
        {
            InitializeComponent();
            this.Text = strTitle;

            this._CurrentAction = (EAction)objFlag.Keyword1;
            this._DataType      = Convert.ToInt16(objFlag.Keyword2);
            //模块表头
            switch (this._DataType)
            {
            case 0:
                this._DataTypeName = "小区";
                break;

            case 1:
                this._DataTypeName = "楼栋";
                break;

            case 2:
                this._DataTypeName = "单元";
                break;

            case 3:
                this._DataTypeName = "房间";
                break;
            }
            if (objFlag.Keyword2 != null)
            {
                switch (this._CurrentAction)
                {
                case EAction.Create:
                    this._CurrentParentID = Convert.ToInt32(objFlag.Keyword3);
                    break;

                case EAction.Edit:
                    this._CurrentID = Convert.ToInt32(objFlag.Keyword3);
                    break;
                }
            }

            //渲染界面
            RenderLayout();
        }