示例#1
0
        private List <Game_User> FillUserEntity(string whereCondition, object parameters)
        {
            string query = @$ "SELECT U.id
                                        ,UG.id AS User_Game_Id, UG.user_rank AS Rank_Id, UG.id_game AS Game_Id, UG.user_profile AS User_Profile
                                        , GR.name AS Rank_Name
                                        , G.name AS Game_Name
                                        , UGF.id_game_function AS Function_Id
                                        , GF.name AS Function_Name, GF.abbreviation AS Function_Abbreviation
                                        FROM nan_db.user U
                                        JOIN nan_db.user_game UG on U.id = UG.id_user
                                        JOIN nan_db.game_rank GR on UG.user_rank = GR.id
                                        JOIN nan_db.game G on UG.id_game = G.id
                                        JOIN nan_db.user_game_function UGF on id_user_game = UG.id
                                        JOIN nan_db.game_function GF on GF.id = UGF.id_game_function
                                        {whereCondition}";

            return(_db.Query <Game_User>(query, parameters).ToList());
        }
示例#2
0
public static final  short 	IMAGE_REL_MIPS_SECRELHI    	The high 16 bits of the 32-bit offset of the target from the beginning of its section. A PAIR relocation must immediately follow this on. The SymbolTableIndex of the PAIR relocation contains a signed 16-bit displacement, which is added to the upper 16 bits taken from the location being relocated. 
 public void EnableOnSimpleMethod{on}(string s, string s2) {}
示例#4
0
            //Метод SqlConnection.Open - Открывает подключение к базе данных со значениями свойств, определяемыми объектом ConnectionString.


//Загрузка данных для заполнения журнала на экране данными:
private void FillTheTable1()
        {
            string tab = comboBox3.Text; try
            {
                SqlDataReader myReader = null;
                SqlCommand myCommand = new SqlCommand("select kol_z, kol_l from discipline where name_discip='" + tab + "'", myConnection);
                myReader = myCommand.ExecuteReader(); while (myReader.Read())
                {

                    col_z = Convert.ToInt32(myReader["kol_z"]); col_l = Convert.ToInt32(myReader["kol_l"]);
                }
                myReader.Close();
                for (int j = 0; j < col_z; j++)
                {
                    dataGridView1.Columns.Add("z" + (j + 1), (j + 1).ToString()); dataGridView1.Columns["z" + (j + 1)].Width = 50;
                }
                for (int j = 0; j < col_l; j++)
                {
                    dataGridView1.Columns.Add("l" + (j + 1), "ЛР" + (j + 1)); dataGridView1.Columns["l" + (j + 1)].Width = 50;
                }

                myReader = null;
                myCommand = new SqlCommand("select name_discip, cod_z, mark, name_prepod, name
                " +
                "from eregister " +
                "join discipline on name_ds=discipline.cod join teachers on
                name_pr = teachers.cod join students on name_st = students.nomer " +
                "where name_discip='" + tab + "'", myConnection); myReader = myCommand.ExecuteReader();
                int i = 0; int k = 0;
                bool fl = true;
                while (myReader.Read())
                {
                    int p = myReader.Depth; if (fl)
                    {
                        dataGridView1.Rows.Add(); dataGridView1.Rows[i].HeaderCell.Value = (i + 1).ToString(); dataGridView1[0, i].Value = myReader["name"].ToString(); dataGridView1[1, i].Value = myReader["name_discip"].ToString(); dataGridView1[2, i].Value = myReader["name_prepod"].ToString(); k = 3;
                        fl = false;
                    }
                    if (k - 3 < col_z)
                        if (myReader["mark"].ToString() == "1")
                        {
                            dataGridView1[k, i].Value = "+"; dataGridView1[k, i].Style.BackColor =
                            System.Drawing.Color.LightGreen;
                        }
                        else
                        if (myReader["mark"].ToString() == "0") dataGridView1[k, i].Value = "-";

                    if (k - 3 >= col_z && k - 3 - col_z < col_l) if (myReader["mark"].ToString() != "n")
                            dataGridView1[k, i].Value = myReader["mark"].ToString();

                    k++;
                    if (k == 3 + col_z + col_l)
                    {
                        i++;
                        fl = true;
                    }
                }
                students_count = i; myReader.Close();
            }

            catch (Exception exp)
            {
                label2.Text = exp.ToString();
            }
        }
示例#5
0
 check this on a regular basis while executing and terminate itself immediately when this is true
 public NLPActionResult DebugOn(Verb.debug debug, on prepOn)
 {
     intent.DebugOn(st);
     return(NLPActionResult.None);
 }
示例#7
0
 private void CustomiseProcessSalesOrderXML2(on.the.dot.XSDObjects.SALESORDER[] SalesOrder)
 {
 }
示例#8
0
 private void CustomiseProcessBusinessPartnerXML(on.the.dot.XSDObjects.BP_ADDRESS[] BP_ADDRESS)
 {
 }
示例#9
0
文件: env.cs 项目: zjmit/go2cs
 By default env prints information as a shell script
     (on Windows, a batch file).If one or more variable
示例#10
0
		(stable): from userAuth.FrameAnchor import into internal InitUI(on: op)