示例#1
0
    private void ResetAgentID()
    {
        int orderID = PageTools.GetSavedId("orderID", null);
        AdminOrderBiz biz = new AdminOrderBiz();
        int agentID = biz.GetAgentID(orderID);

        AgentOrderBiz abiz = new AgentOrderBiz();
        bool isChangeable = abiz.IsOrderMatched(orderID);

        seleAgent.SelectedValue = agentID.ToString();
        if (isChangeable)
        {
            btnChange.Enabled = true;
            lbMsg.Text = "";
        }
        else
        {
            btnChange.Enabled = false;
            lbMsg.Text = "已經進行Invoice Match的訂單不能再修改Agent Transfor。";
        }
    }
示例#2
0
    private void ResetAgentID()
    {
        int orderID = PageTools.GetSavedId("orderID", null);
        AdminOrderBiz biz = new AdminOrderBiz();
        int agentID = biz.GetAgentID(orderID);

        AgentOrderBiz abiz = new AgentOrderBiz();
        bool isChangeable = abiz.IsAgentChangeable(orderID);

        seleAgent.SelectedValue = agentID.ToString();
        if (isChangeable)
        {
            btnChange.Enabled = true;
            lbMsg.Text = "";
        }
        else
        {
            btnChange.Enabled = false;
            lbMsg.Text = "不能修改Agent!請先撤銷此Order對應的收付賬單。";
        }
    }