Example #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。";
        }
    }