锐腾搅拌上料功能
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.

74 lines
1.8 KiB

5 months ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data;
  4. using System.Linq;
  5. using System.Text;
  6. using ICSSoft.Base.Config.DBHelper;
  7. using ICSSoft.Frame.Data.DAL;
  8. using ICSSoft.Frame.Data.Entity;
  9. namespace ICSSoft.Frame.Data.BLL
  10. {
  11. public class ICSStockBarCodeBLL
  12. {
  13. #region CreatebarCode
  14. public static void CreatebarCode(List<ICSITEMLot> Listguid, string Appconstr)
  15. {
  16. try
  17. {
  18. ICSStockBarCodeDAL.CreatebarCode(Listguid, Appconstr);
  19. }
  20. catch (Exception ex)
  21. {
  22. throw ex;
  23. }
  24. }
  25. #endregion
  26. #region CreatebarCode
  27. public static DataTable FindDataByID(string autoid,string Code,string constr)
  28. {
  29. try
  30. {
  31. return ICSStockBarCodeDAL.FindDataByID(autoid,Code, constr);
  32. }
  33. catch (Exception ex)
  34. {
  35. throw ex;
  36. }
  37. }
  38. #endregion
  39. #region select
  40. public static ICSEC select(String guid, String Appconstr)
  41. {
  42. return ICSECDAL.select(guid, Appconstr);
  43. }
  44. #endregion
  45. #region delete
  46. public static void delete(List<String> guidList,string conn)
  47. {
  48. try {
  49. string lotStr = "";
  50. for (int i = 0; i < guidList.Count;i++ )
  51. {
  52. if(lotStr == ""){
  53. lotStr = "'" + guidList[i] + "'";
  54. }else{
  55. lotStr += ",'" + guidList[i] + "'";
  56. }
  57. }
  58. if (lotStr == "") return;
  59. ICSStockBarCodeDAL.delete(lotStr, conn);
  60. }catch(Exception ex){
  61. throw ex;
  62. }
  63. }
  64. #endregion
  65. }
  66. }