Example #1
0
    public static string QueryChanReturn(string strP_DATE, string strStore)
    {
        string strResult = string.Empty;

        VGRModel.MaintainChanReturnData BCO = new PIC.VDS2G.LGT.VGR.MaintainChanReturnData(ConntionDB);

        ParameterList.Clear();

        ParameterList.Add(strP_DATE);
        ParameterList.Add(strStore);

        DataTable dt = BCO.QueryChanReturnToday(ParameterList);

        if (dt.Rows.Count != 0)
        {
            strResult = "今日已有此門市之通路退貨單,確定新增?";
        }
        else
        {
            strResult = "";
        }

        return strResult;
    }
Example #2
0
    private bool QueryChanReturnToday(string strP_DATE, string strStore)
    {
        bool Result = false;

        VGRModel.MaintainChanReturnData BCO = new PIC.VDS2G.LGT.VGR.MaintainChanReturnData(ConntionDB);

        ParameterList.Clear();

        ParameterList.Add(strP_DATE);
        ParameterList.Add(strStore);

        DataTable dt = BCO.QueryChanReturnToday(ParameterList);

        if (dt.Rows.Count != 0)
        {
            Result = true;
        }
        else
        {
            Result = false;
        }

        return Result;
    }