Ejemplo n.º 1
0
    public static string CheckByItemAndPeriodAtServer(string strItem, string strPeriod, string strPriceID)
    {

        string strResult = "";
        try
        {
            TRN_TRN161 TRN16 = new TRN_TRN161();
            string strCheckResult = string.Empty;//回傳結果(價格)
            strCheckResult = TRN16.CheckByItemAndPeriod(strItem, strPeriod);
            if (strCheckResult == "")
            {
                strResult = string.Format("輸入資料有誤,[品號、期別]:[{0}、{1}]", strItem, strPeriod);
            }
            else
            {
                strResult = "P;" + strPriceID + ";" + strCheckResult;
            }

        }
        catch (Exception ex)
        {
            throw ex;
        }

        return strResult;
    }
Ejemplo n.º 2
0
    public static string CheckByChanAndStoreAtServer(string strChanNo, string strStore)
    {

        string strResult = "";
        try
        {
            TRN_TRN161 TRN16 = new TRN_TRN161();

            if (!TRN16.CheckByChanAndStore(strChanNo, strStore))
            {
                strResult = string.Format("輸入資料有誤,[通路、門市]:[{0}、{1}]", strChanNo, strStore);
            }

        }
        catch (Exception ex)
        {
            throw ex;
        }

        return strResult;
    }