Exemplo n.º 1
0
        private void GetExamPlace()
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetExamPlaceByCompCode(ddlPlaceGroup.SelectedIndex == 0 ? "" : ddlPlaceGroup.SelectedItem.Value, ddlPlaceGroup.SelectedItem.Value);

            BindToDDL(ddlPlace, ls.DataResponse);
            ddlPlace.Items.Insert(0, new System.Web.UI.WebControls.ListItem(SysMessage.DefaultSelecting, ""));
        }
Exemplo n.º 2
0
        private void GetDetailExamPlaceOIC()
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetExamPlaceByCompCode(ddlDetailYardGroupCode.SelectedIndex == 0 ? "" : ddlDetailYardGroupCode.SelectedItem.Value, ddlDetailYardGroupCode.SelectedItem.Value);

            BindToDDL(ddlDetailExamYardCode, ls.DataResponse);
            ddlDetailExamYardCode.Items.Insert(0, SysMessage.DefaultSelecting);
        }
Exemplo n.º 3
0
        protected void ddlPlaceGroup_SelectedIndexChanged(object sender, EventArgs e)
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetExamPlaceByCompCode(ddlPlaceGroup.SelectedIndex == 0 ? "" : ddlPlaceGroup.SelectedItem.Value, ddlPlaceGroup.SelectedItem.Value);

            BindToDDL(ddlPlace, ls.DataResponse);
            ddlPlace.Items.Insert(0, SysMessage.DefaultSelecting);
        }
Exemplo n.º 4
0
        protected void ddlDetailYardGroupCode_SelectedIndexChanged(object sender, EventArgs e)
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetExamPlaceByCompCode(ddlDetailYardGroupCode.SelectedIndex == 0 ? "" : ddlDetailYardGroupCode.SelectedItem.Value, ddlDetailYardGroupCode.SelectedItem.Value);

            BindToDDL(ddlDetailExamYardCode, ls.DataResponse);
            ddlDetailExamYardCode.Items.Insert(0, SysMessage.DefaultSelecting);


            upn.Update();
            ModSingleApplicant.Show();
            //IsCanRender = false;
        }
Exemplo n.º 5
0
        private void EditMode(string testingNo, string placeCode)
        {
            BLL.ExamScheduleBiz biz = new BLL.ExamScheduleBiz();
            var exam = biz.GetExamByTestingNoAndPlaceCode(testingNo, placeCode);

            txtDetailExamCode.Text = exam.DataResponse.TESTING_NO;
            txtDetailDateExam.Text = exam.DataResponse.TESTING_DATE.ToString("dd/MM/yyyy");
            txtDetailFee.Text      = exam.DataResponse.EXAM_FEE.ToString();
            txtDetailFee.Text      = biz.GetExamFee().DataResponse;
            ddlDetailTimeExamCode.SelectedValue  = exam.DataResponse.TEST_TIME_CODE;
            ddlDetailYardGroupCode.SelectedValue = exam.DataResponse.EXAM_PLACE_GROUP_CODE;
            if (ddlDetailYardGroupCode.SelectedValue != "")
            {
                BLL.DataCenterBiz dbiz = new BLL.DataCenterBiz();
                var res = dbiz.GetExamPlaceByCompCode(ddlDetailYardGroupCode.SelectedIndex == 0 ? "" : ddlDetailYardGroupCode.SelectedItem.Value, ddlDetailYardGroupCode.SelectedItem.Value);
                BindToDDL(ddlDetailExamYardCode, res.DataResponse);
                ddlDetailExamYardCode.SelectedValue = exam.DataResponse.EXAM_PLACE_CODE;
            }
            ddlDetailOfficerCode.SelectedValue = exam.DataResponse.LICENSE_TYPE_CODE;
            txtDetailNumberOfSeat.Text         = biz.GetSeatAmount(ddlDetailExamYardCode.SelectedValue).DataResponse;
        }