Esempio n. 1
0
        private void btnComprobar_Click(object sender, EventArgs e)
        {
            prorrateoController cProrrateo = new prorrateoController();

            cProrrateo.mProrrateo();

            MRP.DB.ConnectionDBDataContext db = new DB.ConnectionDBDataContext();
            comboBox1.DataSource = db.GetTable<DB.mrp_catalogo_estado>().ToList();
            comboBox1.ValueMember = "id_estado";
            comboBox1.DisplayMember = "descripcion";
        }
Esempio n. 2
0
        private void btnComprobar_Click(object sender, EventArgs e)
        {
            prorrateoController cProrrateo = new prorrateoController();

            cProrrateo.mProrrateo(dtpScheduleDate.Value,(int)cmbNoOrder.SelectedValue);

            Models.prorrateoClass c = new Models.prorrateoClass();

            MRP.DB.ConnectionDBDataContext db = new DB.ConnectionDBDataContext();
            comboBox1.DataSource = c.GetLaborCost(2);
            comboBox1.ValueMember = "SALARIO";
            comboBox1.DisplayMember = "PK_COD_EMPLEADO";
        }