예제 #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            Client Client = new Client();

            Client.Guid = txtGuid.Text;

            Client.Name        = txtName.Text;
            Client.SimpName    = txtSimpName.Text;
            Client.LinkMan     = txtLinkMan.Text;
            Client.Telephone   = txtTelephone.Text;
            Client.Fax         = txtFax.Text;
            Client.Address     = txtAddress.Text;
            Client.Zip         = txtZip.Text;
            Client.Remark      = txtRemark.Text;
            Client.SellType    = cboSellType.Text;
            Client.ProductName = txtProductName.Text;
            if (chkIsEnable.Checked == true)
            {
                Client.IsEnable = 1;
            }
            else
            {
                Client.IsEnable = 0;
            }

            ClientManage.Save(Client);

            frmClient.frmclient.LoadClient();

            this.Close();
        }
예제 #2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            Client Client = new Client();

            Client.Guid = txtGuid.Text;

            Client.Name      = txtName.Text;
            Client.SimpName  = txtSimpName.Text;
            Client.LinkMan   = txtLinkMan.Text;
            Client.Telephone = txtTelephone.Text;
            Client.Fax       = txtFax.Text;
            Client.Address   = txtAddress.Text;
            Client.Zip       = txtZip.Text;
            Client.Remark    = txtRemark.Text;


            ClientManage.Save(Client);

            frmClient.frmclient.LoadClient();

            this.Close();
        }