public r344(MulaolaoLibrary.QUOJEntity model, string num) { InitializeComponent( ); _bll = new MulaolaoBll.Bll.QuoBll( ); this.model = model; this.num = num; setValue( ); }
void setValue( ) { if (model == null) { return; } if (model.idx < 1) { return; } model = _bll.getModel344(model.idx); if (model == null) { return; } tQUOJ006.Text = model.QUOJ006; tQUOJ007.Text = model.QUOJ007; tQUOJ008.Text = model.QUOJ008; tQUOJ009.Text = model.QUOJ009; tQUOJ010.Text = model.QUOJ010; tQUOJ011.Text = Convert.ToDecimal(model.QUOJ011).ToString("0.######"); tQUOJ012.Text = model.QUOJ012; tQUOJ013.Text = model.QUOJ013; tQUOJ014.Text = model.QUOJ014; tQUOJ015.Text = model.QUOJ015; tQUOJ016.Text = Convert.ToDecimal(model.QUOJ016).ToString("0.######"); tQUOJ017.Text = Convert.ToDecimal(model.QUOJ017).ToString("0.######"); tQUOJ018.Text = Convert.ToDecimal(model.QUOJ018).ToString("0.######"); tQUOJ019.Text = Convert.ToDecimal(model.QUOJ019).ToString("0.######"); tQUOJ020.Text = Convert.ToDecimal(model.QUOJ020).ToString("0.######"); tQUOJ021.Text = Convert.ToDecimal(model.QUOJ021).ToString("0.######"); tQUOJ022.Text = Convert.ToDecimal(model.QUOJ022).ToString("0.######"); tQUOJ023.Text = Convert.ToDecimal(model.QUOJ023).ToString("0.######"); tQUOJ024.Text = Convert.ToDecimal(model.QUOJ024).ToString("0.######"); tQUOJ025.Text = Convert.ToDecimal(model.QUOJ025).ToString("0.######"); tQUOJ026.Text = Convert.ToDecimal(model.QUOJ026).ToString("0.######"); tQUOJ027.Text = Convert.ToDecimal(model.QUOJ027).ToString("0.######"); }
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; } }