Esempio n. 1
0
 public static void Delete(ZtPinTuo entity)
 {
     string sql = string.Empty;
     sql = "delete from ztpintuo where tph='" +
         entity.Tph + "'";
     SqliteDbFactory.GetSqliteDbOperator().ExecuteNonQuery(sql);
 }
Esempio n. 2
0
        public static void Delete(ZtPinTuo entity)
        {
            string sql = string.Empty;

            sql = "delete from ztpintuo where tph='" +
                  entity.Tph + "'";
            SqliteDbFactory.GetSqliteDbOperator().ExecuteNonQuery(sql);
        }
Esempio n. 3
0
        public static bool CheckExists(ZtPinTuo entity)
        {
            string sql = string.Empty;
            sql = "select * from ztpintuo where tph='" +
                entity.Tph + "'";
            DataTable dt = SqliteDbFactory.GetSqliteDbOperator().SelectFromSql(sql);

            return dt != null && dt.Rows.Count == 1;
        }
Esempio n. 4
0
 /*
    create table ztpintuo(id integer primary key autoincrement,
  * tph varchar(20),ytph varchar(20),scaner varchar(30),
  * scantime datetime);
 */
 public static void Save(ZtPinTuo entity)
 {
     string sql = string.Empty;
     sql = "insert into ztpintuo(tph,ytph,scaner,scantime) values('" +
         entity.Tph + "','" + entity.Ytph + "','" +
         entity.Scaner + "','" +
         System.DateTime.Now.ToString("s")
         + "')";
     SqliteDbFactory.GetSqliteDbOperator().ExecuteNonQuery(sql);
 }
Esempio n. 5
0
        public static bool CheckExists(ZtPinTuo entity)
        {
            string sql = string.Empty;

            sql = "select * from ztpintuo where tph='" +
                  entity.Tph + "'";
            DataTable dt = SqliteDbFactory.GetSqliteDbOperator().SelectFromSql(sql);

            return(dt != null && dt.Rows.Count == 1);
        }
Esempio n. 6
0
        private ZtPinTuo ComputeData()
        {
            ZtPinTuo entity = new ZtPinTuo();

            entity.Tph = this.txt_TrayNo.Text.Trim();
            entity.Ytph = this.txt_OldTrayNo.Text.Trim();

            entity.Scaner = Program.UserID;
            entity.date = System.DateTime.Now;
            return entity;
        }
Esempio n. 7
0
        /*
         * create table ztpintuo(id integer primary key autoincrement,
         * tph varchar(20),ytph varchar(20),scaner varchar(30),
         * scantime datetime);
         */
        public static void Save(ZtPinTuo entity)
        {
            string sql = string.Empty;

            sql = "insert into ztpintuo(tph,ytph,scaner,scantime) values('" +
                  entity.Tph + "','" + entity.Ytph + "','" +
                  entity.Scaner + "','" +
                  System.DateTime.Now.ToString("s")
                  + "')";
            SqliteDbFactory.GetSqliteDbOperator().ExecuteNonQuery(sql);
        }