You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
907 B
39 lines
907 B
3 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.ComponentModel;
|
||
|
using System.Data;
|
||
|
using System.Drawing;
|
||
|
using System.Text;
|
||
|
using System.Windows.Forms;
|
||
|
|
||
|
namespace Stone.WinModule.BasicData
|
||
|
{
|
||
|
public partial class frmUser : Stone.WinModule.BasicData.frmBaseMain
|
||
|
{
|
||
|
public frmUser()
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
}
|
||
|
|
||
|
public override void Search(string code)
|
||
|
{
|
||
|
if (code == "")
|
||
|
{
|
||
|
strWhere = "1=1";
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
strWhere = " or [Name] like '%" + code + "%'";
|
||
|
strWhere += " or [Memo] like '%" + code + "%'";
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public override string GetSelect()
|
||
|
{
|
||
|
SelectRow = this.dgrdView.SelectedRows[0];
|
||
|
return this.dgrdView.SelectedRows[0].Cells["Name"].Value.ToString();
|
||
|
}
|
||
|
}
|
||
|
}
|