예제 #1
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            List <Mod_TMO_ORDER> list = bll_order.GetModelList(" N_STATUS=2 AND N_EXEC_STATUS IN (0,1,2)");//

            for (int i = 0; i < list.Count; i++)
            {
                DataTable dtsctj = bll_sctj.GetSCTJ(list[i].C_STL_GRD_SLAB, list[i].C_STD_CODE_SLAB);
                if (dtsctj.Rows.Count > 0)
                {
                    list[i].C_STL_GRD_TYPE = dtsctj.Rows[0]["C_STL_GRD_TYPE"].ToString();             //钢种类别
                    list[i].N_GROUP        = Convert.ToDecimal(dtsctj.Rows[0]["N_GROUP"].ToString()); //自由项2
                }
                // list[i].C_REMARK5 = Cls_Order_PC.GetReplaceSlab(list[i].C_STL_GRD,list[i].C_STD_CODE);
                bll_order.Update(list[i]);
            }

            List <Mod_TRP_PLAN_ROLL> listtrp = bll_trp_paln.GetModelList("");

            for (int i = 0; i < listtrp.Count; i++)
            {
                DataTable dtsctj = bll_sctj.GetSCTJ(listtrp[i].C_STL_GRD_SLAB, listtrp[i].C_STD_CODE_SLAB);
                if (dtsctj.Rows.Count > 0)
                {
                    listtrp[i].C_STL_GRD_TYPE = dtsctj.Rows[0]["C_STL_GRD_TYPE"].ToString();             //钢种类别
                    listtrp[i].N_GROUP        = Convert.ToDecimal(dtsctj.Rows[0]["N_GROUP"].ToString()); //自由项2
                }
                // list[i].C_REMARK5 = Cls_Order_PC.GetReplaceSlab(list[i].C_STL_GRD,list[i].C_STD_CODE);
                bll_trp_paln.Update(listtrp[i]);
            }

            List <Mod_TSP_PLAN_SMS> lsisms = bll_plan_sms.GetModelList("");

            for (int i = 0; i < lsisms.Count; i++)
            {
                DataTable dtsctj = bll_sctj.GetSCTJ(lsisms[i].C_STL_GRD, lsisms[i].C_STD_CODE);
                if (dtsctj.Rows.Count > 0)
                {
                    lsisms[i].N_GROUP = Convert.ToDecimal(dtsctj.Rows[0]["N_GROUP"].ToString());//自由项2
                }
                // list[i].C_REMARK5 = Cls_Order_PC.GetReplaceSlab(list[i].C_STL_GRD,list[i].C_STD_CODE);
                bll_plan_sms.Update(lsisms[i]);
            }
        }