Ejemplo n.º 1
0
 // 檢核資料是否已存在DB -> true:已存在、false:不存在
 private bool ChkDup(string date, string code, string period, string datatype)
 {
     PURModel.MaintainPurchaseDeliveryGoods BCO = new PURModel.MaintainPurchaseDeliveryGoods(ConnectionDB);
     ParameterList.Clear();
     ParameterList.Add(date); //門市進貨日
     ParameterList.Add(code); //虛擬品號
     ParameterList.Add(period); //期別
     ParameterList.Add(datatype); //正常品或客服查補
     string V_RESULT = "";
     BCO.ChkDup(ParameterList, out V_RESULT);
     if (V_RESULT != "0") return true;
     else return false;
 }