| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using UAS_LabelMachine.Entity;
- namespace UAS_LabelMachine.PublicMethod
- {
- class LogicHandler
- {
- public static DataHelper dh = SystemInf.dh;
- public static void FilterData(string iCustCode, string iBrand, string iSpec, string iQty, string iDateCode, string iLotno, out string oSpec, out string oQty, out string oDatecode, out string oLotno)
- {
- oSpec = "";
- oQty = "";
- oDatecode = "";
- oLotno = "";
- string[] param = new string[] { iCustCode, iBrand, iSpec, iQty, iDateCode, iLotno, oSpec, oQty, oDatecode, oLotno };
- dh.CallProcedure("sp_datafilter", ref param);
- oSpec = param[6];
- oQty = param[7];
- oDatecode = param[8];
- oLotno = param[9];
- }
- public static void GetTimeFromDatecode(string iDatecode, string iCustcode, out string oYear, out string oMonth, out string oDay, out string oDate)
- {
- oYear = "0";
- oMonth = "0";
- oDay = "0";
- oDate = "19000101";
- string[] param = new string[] { iDatecode, iCustcode, oYear, oMonth, oDay, oDate };
- dh.CallProcedure("GETTIMEFROMDATECODE", ref param);
- oYear = param[2];
- oMonth = param[3];
- oDay = param[4];
- oDate = param[5];
- }
- public static void CustBarCode(string iInoutno,out string oSQL)
- {
- oSQL = "";
- string[] param = new string[] { iInoutno, oSQL };
- dh.CallProcedure("SP_CUSTBARCODE", ref param);
- oSQL = param[1];
- }
- }
- }
|