Beispiel #1
0
 /// <summary>
 /// Edit
 /// </summary>
 public override void Edit()
 {
     if (this.gridView.SelectedRowsCount > 0)
     {
         frmPopup21002 frm = new frmPopup21002(this.gridView.GetRow(this.gridView.GetSelectedRows()[0]) as EntityDicMessageContent);
         frm.ShowDialog();
         if (frm.IsRequireRefresh)
         {
             this.LoadSmsContent();
             this.FilterData(this.tvMsgType.FocusedNode);
             this.ScrollRow(frm.smsVo.sId);
         }
     }
     else
     {
         DialogBox.Msg("请选择要编辑的记录.");
     }
 }
Beispiel #2
0
        /// <summary>
        /// New
        /// </summary>
        public override void New()
        {
            TreeListNode node = this.tvMsgType.FocusedNode;

            if (node.HasChildren)
            {
                DialogBox.Msg("请选择子节点。");
            }
            else
            {
                EntityDicMessageContent newVo = new EntityDicMessageContent();
                newVo.typeId   = (this.tvMsgType.GetDataRecordByNode(node) as EntityDicMessageType).typeId;
                newVo.typeName = (this.tvMsgType.GetDataRecordByNode(node) as EntityDicMessageType).typeName;
                frmPopup21002 frm = new frmPopup21002(newVo);
                frm.ShowDialog();
                if (frm.IsRequireRefresh)
                {
                    this.LoadSmsContent();
                    this.FilterData(node);
                    this.ScrollRow(frm.smsVo.sId);
                }
            }
        }