Exemple #1
0
        // Initialize the box for new data or just edit existed data
        public void InitializeBox(bool newData)
        {
            this.AddNew = newData;
            SharedLinq.LinqFetchPrivilege(ddlPrivilege);
            msgPanel.Visible = false;

            if (this.ItsManager == true)
            {
                ddlPrivilege.SelectedIndex = 0; ddlPrivilege.Enabled = false;
                ddlActive.Enabled = false;
            }
            else
            {
                ddlPrivilege.Items.Insert(0, new ListItem(Properties.Resources.SelectOne, "0"));
                ddlPrivilege.Enabled = true; ddlActive.Enabled = true;
            }

            if (newData == false)
            {
                this.LinqFetchRowData();
                RFvPassword.Enabled = false;
                RFvRePassword.Enabled = false;
            }
            else
            {
                BaseSys.ClearPanelControl(addPanel);
                lbBoxTitle.Text = string.Format("{0} - {1}", Properties.Resources.UserEntry, Properties.Resources.New);
            }
        }
Exemple #2
0
        // Initialize the box for new data or just edit existed data
        public void InitializeBox(bool newData)
        {
            this.AddNew = newData;
            msgPanel.Visible = false;
            txtName.Focus();

            if (newData == false)
                this.LinqXmlFetchRowData();
            else
            {
                BaseSys.ClearPanelControl(addPanel);
                lbBoxTitle.Text = string.Format("{0} - {1}", Properties.Resources.CategoryEntry, Properties.Resources.New);
                mwcAsyncImageUpload.InitializeUploadBox(true);
            }
        }
Exemple #3
0
        // Initialize the box for new data or just edit existed data
        public void InitializeBox(bool newData)
        {
            this.AddNew = newData;
            this.PopulateDDList();
            ddlCategory.Items.Insert(0, new ListItem(Properties.Resources.SelectOne, "0"));
            msgPanel.Visible = false;
            txtTitle.Focus();

            if (newData == false)
                this.LinqFetchRowData();
            else
            {
                BaseSys.ClearPanelControl(addPanel);
                lbBoxTitle.Text = string.Format("{0} - {1}", Properties.Resources.ServiceEntry, Properties.Resources.New);
                mwcAsyncImageUpload.InitializeUploadBox(true);
            }
        }