Beispiel #1
0
 private void GetDataCmb()
 {
     liTransporter   = MasterDataEntity.GetMasterDataTransporter_CMB(0);
     liVehicleType   = MasterDataEntity.GetMasterDataVehicleType_CMB(0, 0);
     liVehicleNumber = MasterDataEntity.GetMasterDataVehicleNumber_CMB(0, 0);
     liDriver        = MasterDataEntity.GetMasterDataDriver_CMB();
 }
Beispiel #2
0
        protected void cmbTransportir_Init(object sender, EventArgs e)
        {
            BootstrapComboBox cmb = sender as BootstrapComboBox;

            cmb.DataSource = MasterDataEntity.GetMasterDataTransporter_CMB();
            cmb.DataBind();
            if (!gv.IsNewRowEditing)
            {
                cmb.Value = Convert.ToString(gv.GetRowValues(gv.EditingRowVisibleIndex, "Transporter_ID"));
            }
        }
        protected List <MasterDataModel.MasterDataTransporter> ListTransporter()
        {
            List <MasterDataModel.MasterDataTransporter> _ListTransporter = new List <MasterDataModel.MasterDataTransporter>();

            _ListTransporter = MasterDataEntity.GetMasterDataTransporter_CMB();

            //add null items
            _ListTransporter.Add(new MasterDataModel.MasterDataTransporter
            {
                Transporter_ID  = 0,
                TransporterName = ""
            });

            return(_ListTransporter);
        }