Exemple #1
0
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            Model_Customer mcust = new Model_Customer();

            mcust.Rolek__BackingField = Enum_Role.Administrator;
            //
            mcust.Idk__BackingField       = cus.Idk__BackingField;
            mcust.FullNamek__BackingField = cus.FullNamek__BackingField;
            //
            FrmAccountsEdit edit = new FrmAccountsEdit();

            edit._ParentFrm = this;
            //edit.ID =cumerid.ToString();
            //edit.UserName = cumername;
            edit.mcust = mcust;
            edit.ShowDialog();
            getCustomerLoad();
        }
Exemple #2
0
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            Model_Customer mcust = new Model_Customer();

            mcust.Rolek__BackingField = Customers.Rolek__BackingField;
            //
            mcust.Idk__BackingField       = Customers.Idk__BackingField;
            mcust.FullNamek__BackingField = Customers.FullNamek__BackingField;
            //
            FrmAccountsEdit edit = new FrmAccountsEdit();

            edit._ParentMaint = this;
            //edit.ID = Customers.Idk__BackingField.ToString();
            //edit.UserName = Customers.FullNamek__BackingField;
            edit.mcust = mcust;
            edit.ShowDialog();
            CoumterUserLoad();
        }
Exemple #3
0
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            Model_Customer mcus = new Model_Customer();

            mcus.Rolek__BackingField = customs.Rolek__BackingField;
            //
            mcus.Idk__BackingField       = customs.Idk__BackingField;
            mcus.FullNamek__BackingField = customs.FullNamek__BackingField;
            //
            FrmAccountsEdit edit = new FrmAccountsEdit();

            edit._ParentClient = this;
            //edit.UserName = fullName;
            //edit.ID = ID;
            edit.mcust = mcus;
            edit.ShowDialog();
            CustomerUserLoad();
        }
Exemple #4
0
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsmEdit_Click(object sender, EventArgs e)
        {
            Model_Customer mcust = new Model_Customer();

            mcust.Rolek__BackingField = Enum_Role.Administrator;
            //
            mcust.Idk__BackingField       = cus.Idk__BackingField;
            mcust.FullNamek__BackingField = cus.FullNamek__BackingField;
            //
            Model_CustomerUser cususer = dataGridView1.SelectedRows[0].Tag as Model_CustomerUser;
            FrmAccountsEdit    edit    = new FrmAccountsEdit();

            edit._ParentFrm   = this;
            edit.customeruser = cususer;
            //edit.ID = cumerid.ToString();
            //edit.UserName = cumername;
            edit.mcust = mcust;
            edit.ShowDialog();
            getCustomerLoad();
        }
Exemple #5
0
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsmEdit_Click(object sender, EventArgs e)
        {
            Model_Customer mcust = new  Model_Customer();

            mcust.Rolek__BackingField = Customers.Rolek__BackingField;
            //
            mcust.FullNamek__BackingField = Customers.FullNamek__BackingField;
            mcust.Idk__BackingField       = Customers.Idk__BackingField;
            //
            Model_CustomerUser custuser = dataGridView1.SelectedRows[0].Tag as Model_CustomerUser;
            FrmAccountsEdit    edit     = new FrmAccountsEdit();

            edit._ParentMaint = this;
            edit.customeruser = custuser;
            //edit.UserName = Customers.FullNamek__BackingField;
            //edit.ID = Customers.Idk__BackingField.ToString();
            edit.mcust = mcust;
            edit.ShowDialog();
            CoumterUserLoad();
        }
Exemple #6
0
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsmEdit_Click(object sender, EventArgs e)
        {
            Model_CustomerUser customeruser = dataGridView1.SelectedRows[0].Tag as Model_CustomerUser;
            Model_Customer     mcus         = new Model_Customer();

            mcus.Rolek__BackingField = customs.Rolek__BackingField;
            //
            mcus.Idk__BackingField       = customs.Idk__BackingField;
            mcus.FullNamek__BackingField = customs.FullNamek__BackingField;
            //
            FrmAccountsEdit edit = new FrmAccountsEdit();

            edit._ParentClient = this;
            edit.customeruser  = customeruser;
            //edit.UserName = fullName;
            //edit.ID = ID;
            edit.mcust = mcus;
            edit.ShowDialog();
            CustomerUserLoad();
        }