コード例 #1
0
        private void LoadData()
        {
            btnClose.OnClientClick = ActiveWindow.GetHideReference();


            DataSet ds = m_bllCK_People.GetList("");

            DropDownListPeople.DataTextField  = "CK_PeopleName";
            DropDownListPeople.DataValueField = "CK_PeopleID";
            DropDownListPeople.DataSource     = ds.Tables[0];
            DropDownListPeople.DataBind();
            DropDownListPeople.SelectedIndex = 0;


            int id = GetQueryIntValue("id");

            TSM.Model.CK_Payment modelCK_Payment = m_bllCK_Payment.GetModel(id);

            if (modelCK_Payment == null)
            {
                // 参数错误,首先弹出Alert对话框然后关闭弹出窗口
                Alert.Show("参数错误!", String.Empty, ActiveWindow.GetHideReference());
                return;
            }
            tbxNote.Text = modelCK_Payment.CK_PayComment;
            DropDownListPeople.SelectedValue = modelCK_Payment.CK_PeopleID.ToString();
            tbxCount.Text            = modelCK_Payment.CK_PayMoney.ToString();
            DatePicker1.SelectedDate = modelCK_Payment.CK_PayDate;
            //tbxName.Text = modelCK_Payment.CK_PaymentName;
            //tbxPhoneNo.Text = modelCK_Payment.CK_PhoneNo;
            //tbxNote.Text = modelCK_Payment.CK_Comment;
        }
コード例 #2
0
        private void LoadData()
        {
            btnClose.OnClientClick = ActiveWindow.GetHideReference();
            DataSet ds = m_bllCK_People.GetList("");

            DropDownListPeople.DataTextField  = "CK_PeopleName";
            DropDownListPeople.DataValueField = "CK_PeopleID";
            DropDownListPeople.DataSource     = ds.Tables[0];
            DropDownListPeople.DataBind();
            DropDownListPeople.SelectedIndex = 0;
        }