Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataView  view = new DataView(getSegregationData());
                DataTable distinctValuesDriver = view.ToTable(true, "Driver");
                Driver.DataSource     = distinctValuesDriver;
                Driver.DataTextField  = "Driver";
                Driver.DataValueField = "Driver";
                Driver.DataBind();
                DataTable distinctValuesChecker = view.ToTable(true, "Checker");
                Checker.DataSource     = distinctValuesChecker;
                Checker.DataTextField  = "Checker";
                Checker.DataValueField = "Checker";
                Checker.DataBind();

                PlateNo.DataSource     = getSegregationData();
                PlateNo.DataTextField  = "PlateNo";
                PlateNo.DataValueField = "PlateNo";
                PlateNo.DataBind();

                BCO.DataSource     = getBranchCorpOffice();
                BCO.DataTextField  = "BranchCorpOfficeName";
                BCO.DataValueField = "BranchCorpOfficeCode";
                BCO.DataBind();

                Destination.DataSource     = getCityBCO();
                Destination.DataTextField  = "CityName";
                Destination.DataValueField = "CityName";
                Destination.DataBind();
            }
        }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         BCO.DataSource     = getBCO();
         BCO.DataTextField  = "BranchCorpOfficeCode";
         BCO.DataValueField = "BranchCorpOfficeId";
         BCO.DataBind();
     }
 }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BCO.DataSource     = getBCO();
                BCO.DataTextField  = "BranchCorpOfficeCode";
                BCO.DataValueField = "BranchCorpOfficeId";
                BCO.DataBind();

                REVENUETYPE.DataSource     = getRevenue();
                REVENUETYPE.DataTextField  = "RevenueUnitTypeName";
                REVENUETYPE.DataValueField = "RevenueUnitTypeName";
                REVENUETYPE.DataBind();
            }
        }
Example #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BCO.DataSource     = getBranchCorpOffice();
                BCO.DataTextField  = "BranchCorpOfficeName";
                BCO.DataValueField = "BranchCorpOfficeCode";
                BCO.DataBind();

                Area.DataSource     = getArea();
                Area.DataTextField  = "RevenueUnitName";
                Area.DataValueField = "RevenueUnitName";
                Area.DataBind();

                setAWB();

                //Date.SelectedDate = DateTime.Now;
            }
        }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            SackNumber.DataSource     = getUnbundle();
            SackNumber.DataTextField  = "SACKNO";
            SackNumber.DataValueField = "SACKNO";
            SackNumber.DataBind();

            BCO.DataSource     = getBranchCorpOffice();
            BCO.DataTextField  = "BranchCorpOfficeName";
            BCO.DataValueField = "BranchCorpOfficeCode";
            BCO.DataBind();

            Origin.DataSource     = getCity();
            Origin.DataTextField  = "CityName";
            Origin.DataValueField = "CityName";
            Origin.DataBind();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Batch.DataSource     = getBatch();
            Batch.DataTextField  = "BatchName";
            Batch.DataValueField = "BatchName";
            Batch.DataBind();

            BCO.DataSource     = getBranchCorpOffice();
            BCO.DataTextField  = "BranchCorpOfficeName";
            BCO.DataValueField = "BranchCorpOfficeCode";
            BCO.DataBind();

            Area.DataSource     = getArea();
            Area.DataTextField  = "RevenueUnitName";
            Area.DataValueField = "RevenueUnitName";
            Area.DataBind();
        }
    }
Example #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BCO.DataSource     = getBranchCorpOffice();
            BCO.DataTextField  = "BranchCorpOfficeName";
            BCO.DataValueField = "BranchCorpOfficeCode";
            BCO.DataBind();

            BundleNumber.DataSource     = getBundle();
            BundleNumber.DataTextField  = "SackNo";
            BundleNumber.DataValueField = "SackNo";
            BundleNumber.DataBind();

            Destination.DataSource     = getCityBCO();
            Destination.DataTextField  = "CityName";
            Destination.DataValueField = "CityName";
            Destination.DataBind();
        }
    }
Example #8
0
        internal void AttachSource(BCO aBCO, int aRowIndex)
        {
            _BCO = aBCO;
            _RowIndex = aRowIndex;

            RegisterBusinessObject();

            _BCO.Callback += bcoCallback;

            //System.Diagnostics.Debug.WriteLine(String.Format("BEO.AttachSource() {0} {1}", aBCO.TableName, _RowIndex));

            _isDeleted = _BCO.CheckDeleted(_RowIndex);
            _isModified = _BCO.CheckModified(_RowIndex);
            _isNew = _BCO.CheckAdded(_RowIndex);

            _internalKey = Key;
        }
Example #9
0
 //private int temp; //3367.22333
 internal BCOEnumerator(BCO aBCO)
 {
     _RowIndex = -1;
     _BCO = aBCO;
 }