protected void CalDotNetack_CustomCalDotNetack(object sender, Controls.CustomCalDotNetack.DotNetCustomCalDotNetack.CustomCalDotNetackEventArgs e)
        {
            if (null == _data)
            {
                _data = new Business.Dictionary.Entities.Base_ItemDetails();
            }
            _data.Name = ctlName.Text;
            _data.Code = ctlCode.Text;
            _data.Pguid = ctlCategorys.SelectedValue;

            _presenter = new DictionaryDetailsListPresenter(this);
            _presenter.SaveOrUpdate();
            _presenter.Init();
            SetItemDetailsList();
            ctlCode.Text = "";
            ctlName.Text = "";
        }
        protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "Enable")
            {
                if (null == _data)
                {
                    _data = new Business.Dictionary.Entities.Base_ItemDetails();
                }
                _data.Fguid = e.CommandArgument.ToString();
                _presenter = new DictionaryDetailsListPresenter(this);
                _presenter.ItemDetailEnable();

                _presenter.Init();
                SetItemDetailsList();
            }
        }
        protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
        {
            if (null == _data)
            {
                _data = new Business.Dictionary.Entities.Base_ItemDetails();
            }

            _data.Fguid = GridView1.DataKeys[e.RowIndex].Value.ToString();
            _data.Code = ((TextBox)(GridView1.Rows[e.RowIndex].Cells[0].Controls[0])).Text;
            _data.Name = ((TextBox)(GridView1.Rows[e.RowIndex].Cells[1].Controls[0])).Text;

            _presenter = new DictionaryDetailsListPresenter(this);
            _presenter.SaveOrUpdate();
            GridView1.EditIndex = -1;
            _presenter.Init();
            SetItemDetailsList();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                _presenter = new DictionaryDetailsListPresenter(this);
                _presenter.Init();

                ctlCategorys.DataSource = _categoryList;
                ctlCategorys.DataTextField = "Name";
                ctlCategorys.DataValueField = "Fguid";
                ctlCategorys.DataBind();
                ctlCategorys.SelectedIndex = 0;

                SetItemDetailsList();
            }
        }
        protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            if (null == _data)
            {
                _data = new Business.Dictionary.Entities.Base_ItemDetails();
            }
            _data.Fguid = GridView1.DataKeys[e.RowIndex].Value.ToString();

            _presenter = new DictionaryDetailsListPresenter(this);
            _presenter.Delete();
            GridView1.EditIndex = -1;
            _presenter.Init();
            SetItemDetailsList();
        }