Beispiel #1
0
        private void Repo_HLE_Edit_Click(object sender, EventArgs e)
        {
            controller.CurrentID = gridHelper.getFocuseRowCellValue_Int(builder.ID);
            controller.LoadEntry();

            tv_Description.Text = controller.Entry.Description;
            btnE_Name.Text      = controller.Entry.Name;
        }
Beispiel #2
0
        private void Repo_HLE_Edit_Click(object sender, EventArgs e)
        {
            SignController.CurrentID = SignGridHelper.getFocuseRowCellValue_Int(SignBuilder.ID);
            SignController.LoadEntry();

            tv_Other.Text       = SignController.Entry.Other;
            dateE_Sign.DateTime = DateTime.Parse(SignController.Entry.Date);

            btn_update.Enabled = true;
        }
Beispiel #3
0
        private void Repo_HLE_Edit_Click(object sender, EventArgs e)
        {
            controller.CurrentID = gridHelper.getFocuseRowCellValue_Int(builder.ID);
            controller.LoadEntry();

            this.tv_Author.Text   = controller.Entry.Author;
            this.tv_BookName.Text = controller.Entry.BookName;
            ControlAPI.SelectedComboxItemByText(this.cmb_Catalog, gridHelper.getFocuseRowCellValue_String(builder.CatalogName));
            this.dateE_Sign.DateTime = DateTime.Parse(controller.Entry.CreateDate);
        }
Beispiel #4
0
        private void Repo_HLE_Edit_Click(object sender, EventArgs e)
        {
            controller.CurrentID = gridHelper.getFocuseRowCellValue_Int(builder.ID);
            controller.LoadEntry();

            tv_Description.Text = controller.Entry.Description;
            tv_Name.Text        = controller.Entry.Name;
            tv_Estimate.Text    = "" + controller.Entry.Estimate;
            dateE_Sign.DateTime = DateTime.Parse(controller.Entry.SignDate);
            ControlAPI.SelectedComboxItemByText(cmb_Catalog, gridHelper.getFocuseRowCellValue_String(builder.CatalogName));
            rating_Level.Rating = Decimal.Parse(controller.Entry.Level.ToString());
        }
Beispiel #5
0
        private void repo_HLE_Delete_Click(object sender, EventArgs e)
        {
            int targetID = gridHelper.getFocuseRowCellValue_Int(builder.ID);

            if (controller.DeleteEntryByID(targetID))
            {
                this.controller.ReleaseEntry();
                this.onInitialUI();
            }
            else
            {
                MessageBoxHelper.ShowDeleteStateDialog(false);
            }
        }
Beispiel #6
0
        private void Repo_HLE_Edit_Click(object sender, EventArgs e)
        {
            controller.CurrentID = gridHelper.getFocuseRowCellValue_Int(builder.ID);
            controller.LoadEntry();

            tv_Type.Text          = controller.Entry.Type;
            dateE_Start.DateTime  = DateTime.Parse(controller.Entry.StartDate);
            dateE_End.DateTime    = string.IsNullOrEmpty(controller.Entry.EndDate) ? DateTime.Now.Date : DateTime.Parse(controller.Entry.EndDate);
            tv_Place.Text         = controller.Entry.Place;
            tv_Other.Text         = controller.Entry.Other;
            colorEdit_Color.Color = System.Drawing.ColorTranslator.FromHtml(controller.Entry.Color);

            controller.CurrentID = this.gridHelper.getFocuseRowCellValue_Int(builder.ID);
            controller.LoadEntry();
        }
Beispiel #7
0
        private void Repo_HLE_Edit_Click(object sender, EventArgs e)
        {
            controller.CurrentID = gridHelper.getFocuseRowCellValue_Int(builder.ID);
            controller.LoadEntry();

            tv_Catalog.Text     = gridHelper.getFocuseRowCellValue_String(builder.CatalogName);
            tv_Description.Text = controller.Entry.Description;
            tv_Estimate.Text    = "" + controller.Entry.Estimate;
            tv_Name.Text        = controller.Entry.Name;
            tv_SignDate.Text    = controller.Entry.SignDate;

            tv_Actual.Text = "" + controller.Entry.Actuality;
            if (string.IsNullOrEmpty(controller.Entry.WeedDate) == false)
            {
                dateE_Weed.DateTime = DateTime.Parse(controller.Entry.WeedDate);
            }
            tv_DiiffReason.Text = controller.Entry.DifferentReason;

            simpleButton1.Enabled  = true;
            btn_RevokeWeed.Enabled = true;
        }