void setValue( ) { if (model == null) { return; } if (model.idx < 1) { return; } model = _bll.getModel196(model.idx); if (model == null) { return; } tQUOB005.Text = model.QUOB005; tQUOB006.Text = model.QUOB006; tQUOB007.Text = model.QUOB007; tQUOB008.Text = Convert.ToDecimal(model.QUOB008).ToString("0.######"); tQUOB009.Text = Convert.ToDecimal(model.QUOB009).ToString("0.######"); tQUOB010.Text = Convert.ToDecimal(model.QUOB010).ToString("0.######"); tQUOB011.Text = Convert.ToDecimal(model.QUOB011).ToString("0.######"); tQUOB012.Text = model.QUOB012; tQUOB013.Text = model.QUOB013; tQUOB014.Text = model.QUOB014; tQUOB015.Text = Convert.ToDecimal(model.QUOB015).ToString("0.######"); tQUOB016.Text = model.QUOB016; }
public r196(MulaolaoLibrary.QUOBEntity model, string num) { InitializeComponent( ); _bll = new MulaolaoBll.Bll.QuoBll( ); this.model = model; this.num = num; setValue( ); }
void choiseCon( ) { if (DicStr.r195.Equals(_qup.QUR003)) { if ("add".Equals(conState)) { model195 = new MulaolaoLibrary.QUOAEntity( ); } read195( ); } else if (DicStr.r196.Equals(_qup.QUR003)) { if ("add".Equals(conState)) { model196 = new MulaolaoLibrary.QUOBEntity( ); } read196( ); } else if (DicStr.r338.Equals(_qup.QUR003)) { if ("add".Equals(conState)) { model338 = new MulaolaoLibrary.QUOCEntity( ); } read338( ); } else if (DicStr.r341.Equals(_qup.QUR003)) { if ("add".Equals(conState)) { model341 = new MulaolaoLibrary.QUODEntity( ); } read341( ); } else if (DicStr.r342.Equals(_qup.QUR003)) { if ("add".Equals(conState)) { model342 = new MulaolaoLibrary.QUOEEntity( ); } read342( ); } else if (DicStr.r343.Equals(_qup.QUR003)) { if ("add".Equals(conState)) { model343 = new MulaolaoLibrary.QUOFEntity( ); } read343( ); } else if (DicStr.r347.Equals(_qup.QUR003)) { if ("add".Equals(conState)) { model347 = new MulaolaoLibrary.QUOGEntity( ); } read347( ); } else if (DicStr.r349.Equals(_qup.QUR003)) { if ("add".Equals(conState)) { model349 = new MulaolaoLibrary.QUOHEntity( ); } read349( ); } else if (DicStr.r339.Equals(_qup.QUR003)) { if ("add".Equals(conState)) { model339 = new MulaolaoLibrary.QUOIEntity( ); } read339( ); } else if (DicStr.r344.Equals(_qup.QUR003)) { if ("add".Equals(conState)) { model344 = new MulaolaoLibrary.QUOJEntity( ); } read344( ); } else if (DicStr.r505.Equals(_qup.QUR003)) { if ("add".Equals(conState)) { model505 = new MulaolaoLibrary.QUOKEntity( ); } read505( ); } else if (DicStr.r495.Equals(_qup.QUR003)) { if ("add".Equals(conState)) { model495 = new MulaolaoLibrary.QUOLEntity( ); } read495( ); } gridControl1.RefreshDataSource( ); }
void setValueToModel( ) { if (DicStr.r195.Equals(_qup.QUR003)) { model195 = new MulaolaoLibrary.QUOAEntity( ); model195.idx = id; } else if (DicStr.r196.Equals(_qup.QUR003)) { model196 = new MulaolaoLibrary.QUOBEntity( ); model196.idx = id; } else if (DicStr.r338.Equals(_qup.QUR003)) { model338 = new MulaolaoLibrary.QUOCEntity( ); model338.idx = id; } else if (DicStr.r341.Equals(_qup.QUR003)) { model341 = new MulaolaoLibrary.QUODEntity( ); model341.idx = id; } else if (DicStr.r342.Equals(_qup.QUR003)) { model342 = new MulaolaoLibrary.QUOEEntity( ); model342.idx = id; } else if (DicStr.r343.Equals(_qup.QUR003)) { model343 = new MulaolaoLibrary.QUOFEntity( ); model343.idx = id; } else if (DicStr.r347.Equals(_qup.QUR003)) { model347 = new MulaolaoLibrary.QUOGEntity( ); model347.idx = id; } else if (DicStr.r349.Equals(_qup.QUR003)) { model349 = new MulaolaoLibrary.QUOHEntity( ); model349.idx = id; } else if (DicStr.r339.Equals(_qup.QUR003)) { model339 = new MulaolaoLibrary.QUOIEntity( ); model339.idx = id; } else if (DicStr.r344.Equals(_qup.QUR003)) { model344 = new MulaolaoLibrary.QUOJEntity( ); model344.idx = id; } else if (DicStr.r505.Equals(_qup.QUR003)) { model505 = new MulaolaoLibrary.QUOKEntity( ); model505.idx = id; } else if (DicStr.r495.Equals(_qup.QUR003)) { model495 = new MulaolaoLibrary.QUOLEntity( ); model495.idx = id; } }