コード例 #1
0
        private void CM_Load(object sender, EventArgs e)
        {
            textBox_Address.MaxLength    = 50;
            textBox_ClientCode.MaxLength = 7;
            textBox_ClientName.MaxLength = 5;
            textBox_Job.MaxLength        = 5;
            textBox_Number.MaxLength     = 20;
            textBox_PeoPleNo.MaxLength   = 13;
            textBox_PhoneNum.MaxLength   = 20;
            textBox_PostNum.MaxLength    = 5;
            textBox_Sex.MaxLength        = 1;

            dataGridView_Client.ColumnCount     = 10;
            dataGridView_Client.Columns[0].Name = "고객코드";
            dataGridView_Client.Columns[1].Name = "고객명";
            dataGridView_Client.Columns[2].Name = "주민번호";
            dataGridView_Client.Columns[3].Name = "신분";
            dataGridView_Client.Columns[4].Name = "성별";
            dataGridView_Client.Columns[5].Name = "전화번호";
            dataGridView_Client.Columns[6].Name = "휴대폰";
            dataGridView_Client.Columns[7].Name = "우편번호";
            dataGridView_Client.Columns[8].Name = "주소";
            dataGridView_Client.Columns[9].Name = "대여횟수";
            Main_VMP vmp = (Main_VMP)MdiParent;

            db = vmp.db;
            db.DBClientInfo(this);

            textBox_ClientCount.Text = (dataGridView_Client.Rows.Count - 1).ToString();
        }
コード例 #2
0
        private void File_VideoInformation_Load(object sender, EventArgs e)
        {
            comboBox_Range.SelectedIndex = 0;
            Main_VMP vmp = (Main_VMP)MdiParent;

            db = vmp.db;
        }
コード例 #3
0
        private void VIM_Load(object sender, EventArgs e)
        {
            textBox_VideoCode.MaxLength     = 7;
            textBox_VideoName.MaxLength     = 50;
            textBox_VideoCategory.MaxLength = 20;
            textBox_VideoDirector.MaxLength = 20;
            textBox_VideoActor.MaxLength    = 20;
            textBox_VideoMade.MaxLength     = 20;

            dataGridView_Video.ColumnCount     = 10;
            dataGridView_Video.Columns[0].Name = "비디오코드";
            dataGridView_Video.Columns[1].Name = "제목";
            dataGridView_Video.Columns[2].Name = "장르";
            dataGridView_Video.Columns[3].Name = "주연배우";
            dataGridView_Video.Columns[4].Name = "감독";
            dataGridView_Video.Columns[5].Name = "제작및배급";
            dataGridView_Video.Columns[6].Name = "출시일";
            dataGridView_Video.Columns[7].Name = "대여횟수";
            dataGridView_Video.Columns[8].Name = "대여유무";
            dataGridView_Video.Columns[9].Name = "등록날짜";
            Main_VMP vmp = (Main_VMP)MdiParent;

            db = vmp.db;

            db.DBVideoInfo(this);
            textBox_VideoCount.Text = (dataGridView_Video.Rows.Count - 1).ToString();
        }
コード例 #4
0
        private void Set_VideoRentSet_Load(object sender, EventArgs e)
        {
            Main_VMP vmp = (Main_VMP)MdiParent;

            db = vmp.db;
            db.DBSettingInfo(this);
        }
コード例 #5
0
        private void Information_Load(object sender, EventArgs e)
        {
            radioButton_VideoRentRank.Checked = true;
            comboBox_Range.SelectedIndex      = 0;
            comboBox_Job.SelectedIndex        = 0;
            Main_VMP vmp = (Main_VMP)MdiParent;

            db = vmp.db;
        }
コード例 #6
0
        private void VRM_Load(object sender, EventArgs e)
        {
            textBox_ClientAddress.MaxLength   = 50;
            textBox_ClientCode.MaxLength      = 7;
            textBox_ClientName.MaxLength      = 5;
            textBox_ClientJob.MaxLength       = 5;
            textBox_ClientNum.MaxLength       = 20;
            textBox_ClientPeopleNum.MaxLength = 13;
            textBox_ClientPhone.MaxLength     = 20;
            textBox_ClientPost.MaxLength      = 5;

            textBox_VideoCode.MaxLength = 7;
            textBox_VideoName.MaxLength = 50;

            dateTimePicker_Rent.Value = System.DateTime.Today;

            dataGridView_Client.ColumnCount     = 8;
            dataGridView_Client.Columns[0].Name = "고객코드";
            dataGridView_Client.Columns[1].Name = "고객명";
            dataGridView_Client.Columns[2].Name = "주민번호";
            dataGridView_Client.Columns[3].Name = "신분";
            dataGridView_Client.Columns[4].Name = "전화번호";
            dataGridView_Client.Columns[5].Name = "휴대폰";
            dataGridView_Client.Columns[6].Name = "우편번호";
            dataGridView_Client.Columns[7].Name = "주소";


            dataGridView_Rent.ColumnCount     = 6;
            dataGridView_Rent.Columns[0].Name = "비디오코드";
            dataGridView_Rent.Columns[1].Name = "고객코드";
            dataGridView_Rent.Columns[2].Name = "대여료";
            dataGridView_Rent.Columns[3].Name = "연체료";
            dataGridView_Rent.Columns[4].Name = "대여일";
            dataGridView_Rent.Columns[5].Name = "반납예정일";

            Main_VMP vmp = (Main_VMP)MdiParent;

            db = vmp.db;
            db.DBVRMClientInfo(this);
            db.DBVRMRentInfo(this);
            textBox_Count.Text = (dataGridView_Rent.Rows.Count - 1).ToString();
        }