Ejemplo n.º 1
0
 /// <summary>
 /// 设置参数
 /// </summary>
 /// <param name="startPoint">开始位置</param>
 /// <param name="oldValue">旧输入值</param>
 /// <param name="editLog">查询窗体对象</param>
 public void SetParameters(Point startPoint, string oldValue, EditLog editLog)
 {
     this.oldValue = oldValue;
     this.Location = startPoint;
     this.editLog  = editLog;
     catList.Clear();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 设置参数
 /// </summary>
 /// <param name="startPoint">开始位置</param>
 /// <param name="oldValue">旧输入值</param>
 /// <param name="editLog">查询窗体对象</param>
 public void SetParameters(Point startPoint, string oldValue, EditLog editLog)
 {
     this.oldValue = oldValue;
     this.Location = startPoint;  
     this.editLog = editLog;
     catList.Clear();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 用户选择查看修改日志(当前记录)
 /// </summary>
 /// <param name="sender">事件发送者</param>
 /// <param name="e">事件</param>
 private void bViewLog_Click(object sender, EventArgs e)
 {
     PageDesc page = (PageDesc)m_Pages[this.tabControl1.SelectedTabIndex - 1]; // 当前页
     GridItem item = page.pg.SelectedGridItem; // 选中的item
     TreeNode currentNode = baseTree.SelectedNode;
     if (item != null && currentNode != null)
     {
         CustomPropertyDescriptor descriptor = item.PropertyDescriptor as CustomPropertyDescriptor;
         object[] primaryKeys = currentNode.Tag as object[];
         if (descriptor != null && primaryKeys != null)
         {
             EditLog logForm = new EditLog(m_conn, descriptor.Property.Key, currentNode, item);
             logForm.Visible = true;
         }
     }
 }