@@ -33,6 +33,7 @@ namespace UAS_LabelMachine
dh = new DataHelper();
adh = new AccessDBHelper("LabelPrint.accdb");
SystemInf.dh = dh;
+ SystemInf.adh = adh;
//获取账套信息
dt = (DataTable)dh.ExecuteSql("select ma_function,ms_pwd,ma_user from master ", "select");
DataTable MasterDB = dt.Clone();
@@ -8,11 +8,15 @@ namespace UAS_LabelMachine.PublicMethod
{
class LogicHandler
- AccessDBHelper dh = SystemInf.adh;
+ static AccessDBHelper adh = SystemInf.adh;
+ /// <summary>
+ /// 更新本地数据库已采集
+ /// </summary>
+ /// <param name="iPibID"></param>
public static void UpdateRowCollected(int iPibID)
-
+ adh.UpdateByCondition("prodiobarcode", "pib_ifcheck=-1,pib_ifprint=-1", "pib_id=" + iPibID);
}
@@ -328,7 +328,7 @@
this.si_expression,
this.si_item,
this.si_expressionitem});
- this.Si_ItemDGV.Location = new System.Drawing.Point(1119, 292);
+ this.Si_ItemDGV.Location = new System.Drawing.Point(1119, 316);
this.Si_ItemDGV.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Si_ItemDGV.Name = "Si_ItemDGV";
this.Si_ItemDGV.RowTemplate.Height = 23;