private void PrepareInitialView()
        {
            BuildDropDownList();

            if (CMBillNo != null)
            {
                lblBillNo.Text = CMBillNo.ToString();
            }
            else
            {
                lblBillNo.Text = "N/A";
            }

            if (PRMWorkOrder != null)
            {
                lblWorkOrder.Text = PRMWorkOrder.ToString();
            }
            else
            {
                lblWorkOrder.Text = "N/A";
            }

            MiscUtil.PopulateBDProjectFloorByProject(ddlProjectFloorID, true, CurrentCMMeasurementBook_DetailedEntity.ProjectID);

            if (CurrentCMMeasurementBook_DetailedEntity.ProjectFloorID > 0)
            {
                ddlProjectFloorID.SelectedValue = CurrentCMMeasurementBook_DetailedEntity.ProjectFloorID.ToString();
            }

            lblItemName.Text = MDItemName.ToString();
        }
예제 #2
0
        private void PrepareInitialView()
        {
            BuildDropDownList();

            txtDescription.Text = this.MDItemName.ToString();
            txtLengthft.Text    = String.Empty;
            txtLenghtin.Text    = String.Empty;
            txtWidthft.Text     = String.Empty;
            txtWidthin.Text     = String.Empty;
            txtHeightft.Text    = String.Empty;
            txtHeightin.Text    = String.Empty;
            txtNos.Text         = String.Empty;

            if (CMBillNo != null)
            {
                lblBillNo.Text = CMBillNo.ToString();
            }
            else
            {
                lblBillNo.Text = "N/A";
            }

            if (PRMWorkOrder != null)
            {
                lblWorkOrder.Text = PRMWorkOrder.ToString();
            }
            else
            {
                lblWorkOrder.Text = "N/A";
            }

            lblItemName.Text = MDItemName.ToString();

            btnSubmit.Text    = "Add";
            btnAddNew.Visible = false;
        }