Commit 28d38eaa authored by Rüveyda Yılmaz's avatar Rüveyda Yılmaz
Browse files

Initial commit

parents
create table bolum (bolum_id int identity(0,1) primary key,bolum_adi nvarchar(50))
create table rol(rol_id int identity(0,1) primary key,rol_adi nvarchar(50))
create table kullanicilar(
kullanici_id int identity(0,1) primary key ,
kullanici_adi nvarchar(50),
kullanici_soyadi nvarchar(50),
kullanici_email nvarchar(50) ,
kullanici_sifre nvarchar(30),
kullanici_onay int default 0,
kullanici_rol_id int references rol(rol_id) default 0,
kullanici_bolum_id int references bolum(bolum_id) default 0,
kullanici_kayit_tarihi datetime default getdate())
create table proje (proje_id int identity(1,1) primary key,
proje_adi nvarchar(50),
proje_başlangıç_tarihi datetime default getdate(),
proje_bitiş_tarihi nvarchar(20),
bolum_id int references bolum(bolum_id),
proje_baskani int references kullanicilar(kullanici_id))
create table proje_gorevleri (proje_gorev_id int identity(1,1) primary key,
proje_id int references proje(proje_id),
proje_gorevi text,
proje_bolum int references bolum(bolum_id))
create table proje_gorevlendirme ( proje_gorevlendirme_id int identity(1,1) primary key,
proje_gorev_id int references proje_gorevleri(proje_gorev_id),
proje_gorev_sorumlusu int references kullanicilar(kullanici_id),
proje_bolum int references bolum(bolum_id),proje_durum int default 0)
create procedure giris
@kullanici_email nvarchar(50)
,@kullanici_sifre nvarchar(30)
,@sonuc int=0 output,@rol int=0 output,@bolum int=0 OUTPUT,@id int=0 OUTPUT
As
begin
declare @kontrol_sifre nvarchar(30)
,@kontrol_email nvarchar(50)
,@kontrol_onay int
select @kontrol_sifre=kullanici_sifre,@kontrol_email=kullanici_email,@kontrol_onay=kullanici_onay ,@rol=kullanici_rol_id,@bolum=kullanici_bolum_id,@id=kullanici_id from kullanicilar where kullanici_sifre=@kullanici_sifre and kullanici_email=@kullanici_email
if @kontrol_sifre=@kullanici_sifre and @kontrol_email=@kullanici_email and @kontrol_onay=1
begin
print 'giris basarili'
set @sonuc=1
end
else if @kontrol_sifre=@kullanici_sifre and @kontrol_email=@kullanici_email and @kontrol_onay=0
begin
print 'bu kullanici onay bekliyor'
set @sonuc=2
end
else
begin
print 'giris basarisiz'
set @sonuc=3
end
end
//////////////////////////////////////////////
ADMİN:Tek bir admin var
email:rovii@gmail.com
şifre:1234
//////////////////////////
Kayıt olan kişi adminin onayı ile giriş yapabilir.
Admin rol ve bolum oluşturur, kullanıcılara roller ve bolumler atar.
Başkan proje oluşturur, genel kullanıcılara proje gorevi atar.
Genel kukllanıcılar başkanın verdiği gorevleri yapar.
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<LayoutView Layout="@typeof(MainLayout)">
<p role="alert">Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
namespace pro_todo.Data;
public class WeatherForecast
{
public DateTime Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string? Summary { get; set; }
}
namespace pro_todo.Data;
public class WeatherForecastService
{
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
public Task<WeatherForecast[]> GetForecastAsync(DateTime startDate)
{
return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
{
Date = startDate.AddDays(index),
TemperatureC = Random.Shared.Next(-20, 55),
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
}).ToArray());
}
}
@page "/page1"
@inherits Prtodo
@using static pro_todo.Pages.Users
<div id="div3">
<table class="table" style="background:rgba(221, 190, 239, 1);width:85%;margin-left:7%;margin-top:5%">
<thead>
<tr>
<th>Adı </th>
<th>Soyadı </th>
<th>Email </th>
<th>Şifre </th>
<th>Rol Id</th>
<th>Bolum Id</th>
<th>Kayıt Tarihi</th>
<th>Onay</th>
</tr>
</thead>
<tbody>
@foreach(var item in kullanici)
{
@if(item.kullaniciEmail != MyUser.kullanici_email)
{
<tr>
<td>@item.kullaniciAdi</td>
<td>@item.kullaniciSoyadi</td>
<td>@item.kullaniciEmail</td>
<td>@item.kullaniciSifre</td>
<td>@item.kullaniciRolId</td>
<td>@item.kullaniciBolumId</td>
<td>@item.kullaniciKayitTarih</td>
<td><input type="checkbox" @onchange="eventArgs => { IsDoneSet(item.kullaniciId, eventArgs.Value); }" checked="@item.kullaniciOnay" /></td>
</tr>
}
}
</tbody>
</table>
</div>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components;
using System.Diagnostics;
using System.Net.Http;
using System.Net.Http.Json;
using System.Text.Json;
using System.Data;
using Microsoft.Extensions.Configuration;
using Microsoft.JSInterop;
using System.Data.SqlClient;
using static pro_todo.Pages.Users;
namespace pro_todo.Pages
{
public class kullanicilar
{
public string kullaniciId {get;set;}
public string kullaniciAdi{get;set;}
public string kullaniciSoyadi{get;set;}
public string kullaniciEmail {get;set;}
public string kullaniciSifre {get;set;}
public string kullaniciRolId {get;set;}
public string kullaniciBolumId {get;set;}
public string kullaniciKayitTarih {get;set;}
public bool kullaniciOnay {get;set;}
}
public class Prtodo:ComponentBase
{
[Inject]
IJSRuntime JSRuntime { get; set; }
static string BaglantiKodu="workstation id=protodo.mssql.somee.com;packet size=4096;user id=Ruveyda044_SQLLogin_1;pwd=xyzm27u3xo;data source=protodo.mssql.somee.com;persist security info=False;initial catalog=protodo";
static SqlConnection Baglanti = new SqlConnection(BaglantiKodu);
static string KomutKodu = "select *from kullanicilar";
static SqlDataAdapter KullanicilarDataAdapter= new SqlDataAdapter (KomutKodu, Baglanti);
SqlCommandBuilder KullanicilarKomut = new SqlCommandBuilder(KullanicilarDataAdapter);
DataSet KullanicilarDataSet = new DataSet();
public List<kullanicilar> kullanici= new List<kullanicilar>();
protected override void OnInitialized()
{
if(MyUser.kullanici_email != "NULL" && MyUser.kullanici_sifre != "NULL" && MyUser.kullanici_rol == "1" && MyUser.kullanici_bolum != "NULL" && MyUser.kullanici_id != "NULL")
{
kullanici.Clear();
kullanici=KullaniciGetir();
}
else
{
JSRuntime.InvokeVoidAsync("logingit");
}
}
public List<kullanicilar> KullaniciGetir(){
try
{
KullanicilarDataAdapter.Fill(KullanicilarDataSet, "kullanici");
for (int i = 0; i < KullanicilarDataSet.Tables[0].Rows.Count; i++)
{
kullanicilar pm = new kullanicilar();
pm.kullaniciId = KullanicilarDataSet.Tables[0].Rows[i]["kullanici_id"].ToString();
pm.kullaniciAdi = KullanicilarDataSet.Tables[0].Rows[i]["kullanici_adi"].ToString();
pm.kullaniciSoyadi = KullanicilarDataSet.Tables[0].Rows[i]["kullanici_soyadi"].ToString();
pm.kullaniciEmail = KullanicilarDataSet.Tables[0].Rows[i]["kullanici_email"].ToString();
pm.kullaniciSifre = KullanicilarDataSet.Tables[0].Rows[i]["kullanici_sifre"].ToString();
pm.kullaniciRolId = KullanicilarDataSet.Tables[0].Rows[i]["kullanici_rol_id"].ToString();
pm.kullaniciBolumId = KullanicilarDataSet.Tables[0].Rows[i]["kullanici_bolum_id"].ToString();
pm.kullaniciKayitTarih = KullanicilarDataSet.Tables[0].Rows[i]["kullanici_kayit_tarihi"].ToString();
string onaystr = KullanicilarDataSet.Tables[0].Rows[i]["kullanici_onay"].ToString();
if (onaystr=="0")
pm.kullaniciOnay=false;
else
pm.kullaniciOnay=true;
kullanici.Add(pm);
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
return kullanici;
}
public async void IsDoneSet(string todoID, object checkedValue)
{
SqlCommand komut=Baglanti.CreateCommand();
bool newIsDone=(bool)checkedValue?true:false;
foreach(kullanicilar kisi in kullanici){
if(kisi.kullaniciId == todoID){
if(kisi.kullaniciOnay==true)
{
kisi.kullaniciOnay = newIsDone;
komut.CommandText="update kullanicilar set kullanici_onay=0 where kullanici_id="+todoID+"";
}
else
{
kisi.kullaniciOnay = newIsDone;
komut.CommandText="update kullanicilar set kullanici_onay=1 where kullanici_id="+todoID+"";
}
break;
}
}
Baglanti.Open();
komut.ExecuteNonQuery();
Baglanti.Close();
}
}
}
\ No newline at end of file
@page "/page2"
@inherits BolumBase
<div style="margin-left:45%;margin-top:5% ;font-family:'Arial Narrow Bold'">
<p style="border:3px; color:red;">Bölüm Sil</p>
<input type="text" @bind="inputid1" placeholder="Bölüm ID">
<button class="btn btn-warning" @onclick="DeleteData">Sil</button>
</div>
<div style="margin-left:45%;margin-top:6%;font-family:'Arial Narrow Bold'">
<p style="border:3px; color:red;">Bölüm Güncelle</p>
<input type="text" @bind="inputid2" placeholder="Bölüm ID">
<input type="text" @bind="inputadi2" placeholder="Bolum Adi">
<button class="btn btn-warning" @onclick="UpdateData">Güncelle</button>
</div>
<div style="margin-left:45%;margin-top:7%;font-family:'Arial Narrow Bold'">
<p style="border:3px; color:red;">Bölüm Ekle</p>
<input type="text" @bind="inputadi3" placeholder="Bölüm Adi">
<button @onclick="InsertData" class="btn btn-warning">Ekle</button>
</div>
<br/>
<table class="table" style="background:rgb( 207, 190, 240 );width:30%;margin-left:3%;margin-top:-35%">
<thead>
<tr>
<th>Bölüm Id </th>
<th>Bölüm Adı</th>
</tr>
</thead>
<tbody>
@foreach(var item in bolumler)
{
<tr>
<td>@item.bolum_id</td>
<td>@item.bolum_adi</td>
</tr>
}
</tbody>
</table>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components;
using System.Diagnostics;
using System.Globalization;
using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage;
using Microsoft.JSInterop;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Net.Http;
using System.Data.SqlClient;
using System.Data;
using static pro_todo.Pages.Users;
namespace pro_todo.Pages{
public class Bolum{
public string bolum_id{get;set;}="";
public string bolum_adi{get;set;}="";
}
public class BolumBase:ComponentBase{
[Inject]
IJSRuntime JSRuntime { get; set; }
static string BaglantiKodu="workstation id=protodo.mssql.somee.com;packet size=4096;user id=Ruveyda044_SQLLogin_1;pwd=xyzm27u3xo;data source=protodo.mssql.somee.com;persist security info=False;initial catalog=protodo";
static SqlConnection Baglanti = new SqlConnection(BaglantiKodu);
static string KomutKodu = "select *from Bolum";
static SqlDataAdapter BolumlerDataAdapter= new SqlDataAdapter (KomutKodu, Baglanti);
SqlCommandBuilder BolumlerKomut = new SqlCommandBuilder(BolumlerDataAdapter);
DataSet BolumlerDataSet = new DataSet();
public List<Bolum> bolumler=new List<Bolum>();
public string inputid1{get;set;}
public string inputid2{get;set;}
public string inputadi2{get;set;}
public string inputadi3{get;set;}
public async Task InsertData()
{
SqlCommand komut=Baglanti.CreateCommand();
komut.CommandText="insert into Bolum values('"+inputadi3+"')";
Baglanti.Open();
komut.ExecuteNonQuery();
Baglanti.Close();
//BolumlerDataSet.Tables[0].Rows.Add(null,inputadi3);
//BolumlerDataAdapter.Update(BolumlerDataSet, "bolumler");
BolumlerDataSet.Tables["bolumler"].Clear();
inputadi3="";
await OnInitializedAsync();
}
public async Task UpdateData()
{
/* DataRowCollection itemColumns = BolumlerDataSet.Tables[0].Rows;
for (int i = 0; i < BolumlerDataSet.Tables[0].Rows.Count; i++)
{
if(BolumlerDataSet.Tables[0].Rows[i]["bolum_id"].ToString()==inputid2)
BolumlerDataSet.Tables[0].Rows[i]["bolum_adi"]=inputadi2;
}
BolumlerDataAdapter.Update(BolumlerDataSet,"bolumler");
BolumlerKomut.Dispose();
BolumlerDataSet.Tables["bolumler"].Clear();*/
SqlCommand komut=Baglanti.CreateCommand();
komut.CommandText="update Bolum set bolum_adi='"+inputadi2+"' where bolum_id="+inputid2+"";
Baglanti.Open();
komut.ExecuteNonQuery();
Baglanti.Close();
BolumlerKomut.Dispose();
BolumlerDataSet.Tables["bolumler"].Clear();
inputid2="";
inputadi2="";
await OnInitializedAsync();
}
public async Task DeleteData()
{ /* foreach (DataRow row in BolumlerDataSet.Tables[0].Rows) {
if (row["bolum_id"].ToString() == inputid1)
row.Delete();
}*/
SqlCommand komut=Baglanti.CreateCommand();
komut.CommandText="delete from Bolum where bolum_id="+inputid1+"";
Baglanti.Open();
komut.ExecuteNonQuery();
Baglanti.Close();
//BolumlerDataAdapter.Update(BolumlerDataSet, "bolumler");
BolumlerKomut.Dispose();
BolumlerDataSet.Tables["bolumler"].Clear();
inputid1="";
await OnInitializedAsync();
}
protected override async Task OnInitializedAsync()
{
if(MyUser.kullanici_email != "NULL" && MyUser.kullanici_sifre != "NULL" && MyUser.kullanici_rol == "1" && MyUser.kullanici_bolum != "NULL" && MyUser.kullanici_id != "NULL")
{
bolumler.Clear();
bolumler=BolumGetir();
}
else
{
JSRuntime.InvokeVoidAsync("logingit");
}
}
public List<Bolum> BolumGetir(){
try
{
BolumlerDataAdapter.Fill(BolumlerDataSet, "bolumler");
for (int i = 0; i < BolumlerDataSet.Tables[0].Rows.Count; i++)
{
Bolum pm = new Bolum();
pm.bolum_id = BolumlerDataSet.Tables[0].Rows[i]["bolum_id"].ToString();
pm.bolum_adi = BolumlerDataSet.Tables[0].Rows[i]["bolum_adi"].ToString();
bolumler.Add(pm);
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
return bolumler;
}
}
}
\ No newline at end of file
@page "/page3"
@inherits AdminPage3Base
@using static pro_todo.Pages.Users
<p style="border:2px; color:red; margin-top:5%; font-size:20px; font-family:'Arial Narrow Bold' ">Şifre Değiştirme işlemi</p>
<input @bind="inputSifre" placeholder="Şifre" style="font-family:'Arial Narrow Bold'"/>
<button class="btn btn-warning" @onclick="SifreUpdateData" style="font-family:'Arial Narrow Bold'">Güncelle</button>
<hr>
<p style="border:2px; color:red; margin-top:5%; font-size:20px; font-family:'Arial Narrow Bold' ">E-mail Değiştirme işlemi</p>
<input @bind="inputEmail" placeholder="E-mail" style="font-family:'Arial Narrow Bold'"/>
<button class="btn btn-warning" @onclick="EmailUpdateData" style="font-family:'Arial Narrow Bold'">Güncelle</button>
@if (kullanicilar == null)
{
<p><em>Loading...</em></p>
}
else
{
@foreach (var p in kullanicilar)
{
<p>
@p.kullanici_email @p.kullanici_sifre
</p>
<hr/>
}
}
<br/>
<p>@error</p>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components;
using System.Diagnostics;
using System.Globalization;
using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage;
using Microsoft.JSInterop;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Net.Http;
using System.Data.SqlClient;
using System.Data;
using static pro_todo.Pages.Users;
namespace pro_todo.Pages{
public class kullanici
{
public string kullanici_email {get;set;}
public string kullanici_sifre {get;set;}
}
public class AdminPage3Base:ComponentBase
{
[Inject]
IJSRuntime JSRuntime { get; set; }
static string BaglantiKodu="workstation id=protodo.mssql.somee.com;packet size=4096;user id=Ruveyda044_SQLLogin_1;pwd=xyzm27u3xo;data source=protodo.mssql.somee.com;persist security info=False;initial catalog=protodo";
static SqlConnection Baglanti = new SqlConnection(BaglantiKodu);
static string KomutKodu = "select *from kullanicilar";
static SqlDataAdapter ProjelerDataAdapter= new SqlDataAdapter (KomutKodu, Baglanti);
SqlCommandBuilder ProjelerKomut = new SqlCommandBuilder(ProjelerDataAdapter);
DataSet ProjelerDataSet = new DataSet();
public List<kullanici> kullanicilar= new List<kullanici>();
public string error{get; set;}
public string inputEmail{get; set;}
public string inputSifre{get; set;}
public async Task SifreUpdateData()
{
SqlCommand komut=Baglanti.CreateCommand();
komut.CommandText="update kullanicilar set kullanici_sifre='"+inputSifre+"' where kullanici_email='"+MyUser.kullanici_email+"'";
Baglanti.Open();
komut.ExecuteNonQuery();
Baglanti.Close();
inputSifre="";
await OnInitializedAsync();
}
public async Task EmailUpdateData()
{
SqlCommand komut=Baglanti.CreateCommand();
komut.CommandText="update kullanicilar set kullanici_email='"+inputEmail+"' where kullanici_email='"+MyUser.kullanici_email+"'";
MyUser.kullanici_email=inputEmail;
Baglanti.Open();
komut.ExecuteNonQuery();
Baglanti.Close();
inputSifre="";
inputEmail="";
await OnInitializedAsync();
}
protected override async Task OnInitializedAsync()
{
if(MyUser.kullanici_email != "NULL" && MyUser.kullanici_sifre != "NULL" && MyUser.kullanici_bolum != "NULL" && MyUser.kullanici_id != "NULL")
{
kullanicilar.Clear();
}
else
{
JSRuntime.InvokeVoidAsync("logingit");
}
}
}
}
/* public async Task UpdateData() //güncelleme işlemi
{
DataRowCollection itemColumns = dsps.Tables[0].Rows;
for (int i = 0; i < dsps.Tables[0].Rows.Count; i++)
{
if(dsps.Tables[0].Rows[i]["kullanici_email"].ToString()==inputEmail)
dsps.Tables[0].Rows[i]["kullanici_sifre"]=inputSifre;
}
daps.Update(dsps,"admin");
cb.Dispose();
dsps.Tables["admin"].Clear();
inputEmail="";
inputSifre="";
await OnInitializedAsync();
} */
/* protected override async Task OnInitializedAsync()
{
people.Clear();
await selectproc();
}
public Task selectproc()
{
return Task.Run(() =>
{
try
{
daps.Fill(dsps, "people");
error+=dsps.Tables[0].Rows.Count.ToString();
for (int i = 0; i < dsps.Tables[0].Rows.Count; i++)
{
admin pm = new admin();
pm.kullanici_email = dsps.Tables[0].Rows[i]["kullanici_email"].ToString();
pm.kullanici_sifre = dsps.Tables[0].Rows[i]["kullanici_sifre"].ToString();
people.Add(pm);
}
}
catch (Exception ex)
{
error=ex.ToString();
}
});
} */
\ No newline at end of file
@page "/page4"
@inherits RolBase
<div style="margin-left:45%;margin-top:5% ;font-family:'Arial Narrow Bold'">
<p style="border:3px; color:red;">Rol Sil</p>
<input id="rolid" type="text" @bind="inputid1" placeholder="Rol ID">
<button id="rolsil" class="btn btn-warning" @onclick="DeleteData">Sil</button>
</div>
<div style="margin-left:45%;margin-top:6%;font-family:'Arial Narrow Bold'">
<p style="border:3px; color:red;">Rol Güncelle</p>
<input id="rolid" type="text" @bind="inputid2" placeholder="Rol ID">
<input id="roladi" type="text" @bind="inputadi2" placeholder="Rol Adi">
<button id="rolgüncelle" class="btn btn-warning" @onclick="UpdateData">Güncelle</button>
</div>
<div style="margin-left:45%;margin-top:7%;font-family:'Arial Narrow Bold'">
<p style="border:3px; color:red;">Rol Ekle</p>
<input id="roladi" type="text" @bind="inputadi3" placeholder="Rol Adi">
<button id="rolekle" class="btn btn-warning" @onclick="InsertData">Ekle</button>
</div>
<br/>
<table class="table" style="background:rgb( 207, 190, 240 );width:30%;margin-left:3%;margin-top:-35%">
<thead>
<tr>
<th>Rol Id </th>
<th>Rol Adı</th>
</tr>
</thead>
<tbody>
@foreach(var item in roller)
{
<tr>
<td>@item.rol_id</td>
<td>@item.rol_adi</td>
</tr>
}
</tbody>
</table>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components;
using System.Diagnostics;
using System.Globalization;
using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage;
using Microsoft.JSInterop;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Net.Http;
using System.Data.SqlClient;
using System.Data;
using static pro_todo.Pages.Users;
namespace pro_todo.Pages{
public class Rol{
public string rol_id{get;set;}="";
public string rol_adi{get;set;}="";
}
public class RolBase:ComponentBase{
[Inject]
IJSRuntime JSRuntime { get; set; }
static string BaglantiKodu="workstation id=protodo.mssql.somee.com;packet size=4096;user id=Ruveyda044_SQLLogin_1;pwd=xyzm27u3xo;data source=protodo.mssql.somee.com;persist security info=False;initial catalog=protodo";
static SqlConnection Baglanti = new SqlConnection(BaglantiKodu);
static string KomutKodu = "select *from rol";
static SqlDataAdapter RollerDataAdapter= new SqlDataAdapter (KomutKodu, Baglanti);
SqlCommandBuilder RollerKomut = new SqlCommandBuilder(RollerDataAdapter);
DataSet RollerDataSet = new DataSet();
public List<Rol> roller=new List<Rol>();
public string inputid1{get;set;}
public string inputid2{get;set;}
public string inputadi2{get;set;}
public string inputadi3{get;set;}
protected override async Task OnInitializedAsync()
{
if(MyUser.kullanici_email != "NULL" && MyUser.kullanici_sifre != "NULL" && MyUser.kullanici_rol == "1" && MyUser.kullanici_bolum != "NULL" && MyUser.kullanici_id != "NULL")
{
roller.Clear();
roller=RolGetir();
}
else
{
JSRuntime.InvokeVoidAsync("logingit");
}
}
public async Task InsertData()
{
SqlCommand komut=Baglanti.CreateCommand();
komut.CommandText="insert into rol values('"+inputadi3+"')";
Baglanti.Open();
komut.ExecuteNonQuery();
Baglanti.Close();
//RollerKomut.Dispose();
//RollerDataSet.Tables["roller"].Clear();
inputadi3="";
RollerKomut.Dispose();
RollerDataSet.Tables["rol"].Clear();
await OnInitializedAsync();
}
public async Task UpdateData()
{
SqlCommand komut=Baglanti.CreateCommand();
komut.CommandText="update rol set rol_adi='"+inputadi2+"' where rol_id="+inputid2+"";
Baglanti.Open();
komut.ExecuteNonQuery();
Baglanti.Close();
//RollerKomut.Dispose();
//RollerDataSet.Tables["roller"].Clear();
inputid2="";
inputadi2="";
RollerKomut.Dispose();
RollerDataSet.Tables["rol"].Clear();
await OnInitializedAsync();
}
public async Task DeleteData()
{
SqlCommand komut=Baglanti.CreateCommand();
komut.CommandText="delete from rol where rol_id="+inputid1+"";
Baglanti.Open();
komut.ExecuteNonQuery();
Baglanti.Close();
//RollerDataAdapter.Update(RollerDataSet, "roller");
//RollerKomut.Dispose();
//RollerDataSet.Tables["roller"].Clear();
inputid1="";
RollerKomut.Dispose();
RollerDataSet.Tables["rol"].Clear();
await OnInitializedAsync();
}
public List<Rol> RolGetir(){
try
{
RollerDataAdapter.Fill(RollerDataSet, "rol");
for (int i = 0; i < RollerDataSet.Tables[0].Rows.Count; i++)
{
Rol pm = new Rol();
pm.rol_id = RollerDataSet.Tables[0].Rows[i]["rol_id"].ToString();
pm.rol_adi = RollerDataSet.Tables[0].Rows[i]["rol_adi"].ToString();
roller.Add(pm);
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
return roller;
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components;
using System.Diagnostics;
using System.Globalization;
using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage;
using Microsoft.JSInterop;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Net.Http;
using System.Data.SqlClient;
using System.Data;
using static pro_todo.Pages.Users;
namespace pro_todo.Pages{
public class kullanicitablo{
public string kullaniciAdi{get;set;}
public string kullaniciSoyadi{get;set;}
public string kullaniciEmail {get;set;}
public string kullaniciRolId {get;set;}
public string kullaniciEkipId {get;set;}
public string kullaniciOnay { get; set; }
}
public class Bolumler{
public string bolum_id{get;set;}
public string bolum_adi{get;set;}
}
public class Roller{
public string rol_id{get;set;}
public string rol_adi{get;set;}
}
public class AdminPage5Base:ComponentBase{
[Inject]
IJSRuntime JSRuntime { get; set; }
static string BaglantiKoduu="workstation id=protodo.mssql.somee.com;packet size=4096;user id=Ruveyda044_SQLLogin_1;pwd=xyzm27u3xo;data source=protodo.mssql.somee.com;persist security info=False;initial catalog=protodo";
static SqlConnection Baglantii = new SqlConnection(BaglantiKoduu);
static string KomutKoduu = "select *from kullanicilar";
static SqlDataAdapter KullanicilarDataAdapterr= new SqlDataAdapter (KomutKoduu, Baglantii);
SqlCommandBuilder KullanicilarKomutt = new SqlCommandBuilder(KullanicilarDataAdapterr);
DataSet KullanicilarDataSett = new DataSet();
public List<kullanicitablo> kullanicii= new List<kullanicitablo>();
public List<Bolumler> bolumtablo= new List<Bolumler>();
public List<Roller> roltablo= new List<Roller>();
protected override async Task OnInitializedAsync()
{
if(MyUser.kullanici_email != "NULL" && MyUser.kullanici_sifre != "NULL" && MyUser.kullanici_rol == "1" && MyUser.kullanici_bolum != "NULL" && MyUser.kullanici_id != "NULL")
{
kullanicii=KullaniciGetirr();
bolumtablo=BolumGetir();
roltablo=RolGetir();
}
else
{
JSRuntime.InvokeVoidAsync("logingit");
}
}
public List<kullanicitablo> KullaniciGetirr(){
try
{
KullanicilarDataAdapterr.Fill(KullanicilarDataSett, "kullanicii");
for (int i = 0; i < KullanicilarDataSett.Tables[0].Rows.Count; i++)
{
kullanicitablo pm = new kullanicitablo();
pm.kullaniciAdi = KullanicilarDataSett.Tables[0].Rows[i]["kullanici_adi"].ToString();
pm.kullaniciSoyadi = KullanicilarDataSett.Tables[0].Rows[i]["kullanici_soyadi"].ToString();
pm.kullaniciEmail = KullanicilarDataSett.Tables[0].Rows[i]["kullanici_email"].ToString();
pm.kullaniciRolId = KullanicilarDataSett.Tables[0].Rows[i]["kullanici_rol_id"].ToString();
pm.kullaniciEkipId = KullanicilarDataSett.Tables[0].Rows[i]["kullanici_bolum_id"].ToString();
pm.kullaniciOnay = KullanicilarDataSett.Tables[0].Rows[i]["kullanici_onay"].ToString();
kullanicii.Add(pm);
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
return kullanicii;
}
public List<Bolumler> BolumGetir(){
string KomutKoduu = "select *from bolum";
SqlDataAdapter RollerDataAdapter= new SqlDataAdapter (KomutKoduu, Baglantii);
SqlCommandBuilder RollerKomut = new SqlCommandBuilder(RollerDataAdapter);
DataSet RollerDataSet = new DataSet();
try
{
RollerDataAdapter.Fill(RollerDataSet, "bolumtablo");
for (int i = 0; i < RollerDataSet.Tables[0].Rows.Count; i++)
{
Bolumler pm = new Bolumler();
pm.bolum_id = RollerDataSet.Tables[0].Rows[i]["bolum_id"].ToString();
pm.bolum_adi = RollerDataSet.Tables[0].Rows[i]["bolum_adi"].ToString();
bolumtablo.Add(pm);
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
return bolumtablo;
}
public List<Roller> RolGetir(){
string KomutKoduu = "select *from rol";
SqlDataAdapter RollerDataAdapter= new SqlDataAdapter (KomutKoduu, Baglantii);
SqlCommandBuilder RollerKomut = new SqlCommandBuilder(RollerDataAdapter);
DataSet RollerDataSet = new DataSet();
try
{
RollerDataAdapter.Fill(RollerDataSet, "roltablo");
for (int i = 0; i < RollerDataSet.Tables[0].Rows.Count; i++)
{
Roller pm = new Roller();
pm.rol_id = RollerDataSet.Tables[0].Rows[i]["rol_id"].ToString();
pm.rol_adi = RollerDataSet.Tables[0].Rows[i]["rol_adi"].ToString();
roltablo.Add(pm);
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
return roltablo;
}
public void RolDegis(ChangeEventArgs e,string email)
{
string secilenrolid=e.Value.ToString();
SqlCommand komut=Baglantii.CreateCommand();
komut.CommandText="update kullanicilar set kullanici_rol_id="+secilenrolid+" where kullanici_email='"+email+"'";
Baglantii.Open();
komut.ExecuteNonQuery();
Baglantii.Close();
}
public void BolumDegis(ChangeEventArgs e,string email)
{
string secilenbolumid=e.Value.ToString();
SqlCommand komut=Baglantii.CreateCommand();
komut.CommandText="update kullanicilar set kullanici_bolum_id="+secilenbolumid+" where kullanici_email='"+email+"'";
Baglantii.Open();
komut.ExecuteNonQuery();
Baglantii.Close();
}
}
}
\ No newline at end of file
@page "/page5"
@inherits AdminPage5Base
@using static pro_todo.Pages.Users
<table class="table" style="background:rgba(221, 190, 239, 1);width:85%;margin-left:7%;margin-top:5%">
<thead>
<tr>
<th>Kullanıcı Adı </th>
<th>kullanıcı Soyadı </th>
<th>Email </th>
<th>Rol </th>
<th>Bolum</th>
</tr>
</thead>
<tbody>
@foreach(var ritem1 in roltablo)
{
@foreach(var item in kullanicii)
{
@if(ritem1.rol_id==item.kullaniciRolId && item.kullaniciOnay=="1" && MyUser.kullanici_email!=item.kullaniciEmail)
{
<tr>
<td>@item.kullaniciAdi</td>
<td>@item.kullaniciSoyadi</td>
<td>@item.kullaniciEmail</td>
<td>
<select @onchange="e => { RolDegis(e,item.kullaniciEmail);}">
@foreach(var ritem in roltablo)
{
@if(ritem.rol_id==item.kullaniciRolId)
{
<option value=@ritem.rol_id selected>@ritem.rol_adi</option>
}
else
{
<option value=@ritem.rol_id>@ritem.rol_adi</option>
}
}
</select>
</td>
<td>
<select @onchange="e => { BolumDegis(e,item.kullaniciEmail);}">
@foreach(var bitem in bolumtablo)
{
@if(bitem.bolum_id==item.kullaniciEkipId)
{
<option value=@bitem.bolum_id selected>@bitem.bolum_adi</option>
}
else
{
<option value=@bitem.bolum_id>@bitem.bolum_adi</option>
}
}
</select>
</td>
</tr>
}
}
}
</tbody>
</table>
\ No newline at end of file
@page "/BaskanPage"
@inherits BaskanPageBase
@using static pro_todo.Pages.Users
<div style="margin-top:5% ;font-family:'Arial Narrow Bold'">
<input type="text" @bind="inputadi" placeholder="Proje Adi">
<input class="date" type="date" @onchange="tarihgetir" placeholder="../../...">
<button @onclick="InsertData" class="btn btn-warning">Ekle</button>
</div>
<table class="table" style="background:rgb( 207, 190, 240 );width:60%;margin-left:2%; margin-top:3% ">
<thead>
<tr>
<th>Proje Id </th>
<th>Proje Adı</th>
<th>Proje Bitiş Tarihi</th>
<th>Proje Bolum Id</th>
<th>Proje Başkanı</th>
</tr>
</thead>
<tbody>
@foreach(var item in projeler)
{
@if(item.proje_bolum_id==MyUser.kullanici_bolum)
{
<tr>
<td>@item.proje_id</td>
<td>@item.proje_adi</td>
<td>@item.proje_bitis_tarihi</td>
<td>@item.proje_bolum_id</td>
<td>@item.proje_baskani</td>
</tr>
}
}
</tbody>
</table>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components;
using System.Diagnostics;
using System.Globalization;
using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage;
using Microsoft.JSInterop;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Net.Http;
using System.Data.SqlClient;
using System.Data;
using static pro_todo.Pages.Users;
namespace pro_todo.Pages{
public class proje{
public string proje_id{get;set;}
public string proje_adi{get;set;}
public string proje_bitis_tarihi{get;set;}
public string proje_bolum_id{get;set;}
public string proje_baskani{get;set;}
}
public class BaskanPageBase:ComponentBase{
[Inject]
IJSRuntime JSRuntime { get; set; }
static string BaglantiKodu="workstation id=protodo.mssql.somee.com;packet size=4096;user id=Ruveyda044_SQLLogin_1;pwd=xyzm27u3xo;data source=protodo.mssql.somee.com;persist security info=False;initial catalog=protodo";
static SqlConnection Baglanti = new SqlConnection(BaglantiKodu);
static string KomutKodu = "select *from proje";
static SqlDataAdapter ProjelerDataAdapter= new SqlDataAdapter (KomutKodu, Baglanti);
SqlCommandBuilder ProjelerKomut = new SqlCommandBuilder(ProjelerDataAdapter);
DataSet ProjelerDataSet = new DataSet();
public List<proje> projeler=new List<proje>();
public string inputadi{get;set;}
public string inputid{get;set;}
public static DateTime tarih{get;set;}
public string inputbitistarihi{get;set;}
public string inputbolumid{get;set;}
public string projebaskani{get;set;}
public async Task InsertData()
{
SqlCommand komut=Baglanti.CreateCommand();
komut.CommandText="insert into proje(proje_adi,proje_bitiş_tarihi,bolum_id,proje_baskani) values('"+inputadi+"','"+inputbitistarihi+"',"+MyUser.kullanici_bolum+","+MyUser.kullanici_id+")";
Baglanti.Open();
komut.ExecuteNonQuery();
Baglanti.Close();
//RollerKomut.Dispose();
//RollerDataSet.Tables["roller"].Clear();
inputadi="";
ProjelerKomut.Dispose();
ProjelerDataSet.Tables["proje"].Clear();
await OnInitializedAsync();
}
protected override async Task OnInitializedAsync()
{
if(MyUser.kullanici_email != "NULL" && MyUser.kullanici_sifre != "NULL" && MyUser.kullanici_rol == "2" && MyUser.kullanici_bolum != "NULL" && MyUser.kullanici_id != "NULL")
{
projeler.Clear();
projeler=ProjeGetir();
}
else
{
JSRuntime.InvokeVoidAsync("logingit");
}
}
public List<proje> ProjeGetir(){
try
{
ProjelerDataAdapter.Fill(ProjelerDataSet, "proje");
for (int i = 0; i < ProjelerDataSet.Tables[0].Rows.Count; i++)
{
proje pm = new proje();
pm.proje_id = ProjelerDataSet.Tables[0].Rows[i]["proje_id"].ToString();
pm.proje_adi = ProjelerDataSet.Tables[0].Rows[i]["proje_adi"].ToString();
pm.proje_bitis_tarihi = ProjelerDataSet.Tables[0].Rows[i]["proje_bitiş_tarihi"].ToString();
pm.proje_bolum_id = ProjelerDataSet.Tables[0].Rows[i]["bolum_id"].ToString();
pm.proje_baskani = ProjelerDataSet.Tables[0].Rows[i]["proje_baskani"].ToString();
projeler.Add(pm);
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
return projeler;
}
public void tarihgetir(ChangeEventArgs e){
tarih=DateTime.Parse(e.Value.ToString());
inputbitistarihi=tarih.ToString("dd/MM/yyyy");
}
}
}
@page "/BaskanPage1"
@inherits BaskanPageBaseGorev
@using static pro_todo.Pages.Users
<div >
<select @onchange="Option" style="margin-top:2%;" >
<option selected disabled value="-1">Proje Seçin</option>
@if(projeler is null)
{
<p>Loading..</p>
}
else
{
foreach(var item in projeler)
{
@if(item.proje_bolum_id==MyUser.kullanici_bolum)
{
<option value=@item.proje_id >@item.proje_adi</option>
}
}
}
</select>
</div>
<div style="margin-top:-2%; margin-left:25% ;font-family:'Arial Narrow Bold'">
<input type="text" @bind="inputgorevadi" placeholder="Görev Adi">
<button @onclick="GorevEkle" class="btn btn-warning">Ekle</button>
</div>
<div style="margin-left:25% ; margin-top:3%;">
<input type="text" @bind="inputgorevid" placeholder="Gorev ID">
<input type="text" @bind="inputgorevadi" placeholder="Görev Adi">
<button @onclick="GorevUpdate" class="btn btn-danger">Güncelle</button>
</div>
<table class="table" style="background:rgb( 207, 216, 240 );width:55%;margin-left:2%;margin-top:5%">
<thead>
<tr>
<th>Görev Id</th>
<th>Proje Id</th>
<th>Gorev Adı</th>
<th>Bölüm Id</th>
</tr>
</thead>
<tbody>
@foreach(var item in gorevler)
{
@if(item.proje_bolum==MyUser.kullanici_bolum)
{
<tr>
<td>@item.proje_gorev_id</td>
<td>@item.proje_id</td>
<td>@item.proje_gorevi</td>
<td>@item.proje_bolum</td>
</tr>
}
}
</tbody>
</table>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components;
using System.Diagnostics;
using System.Globalization;
using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage;
using Microsoft.JSInterop;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Net.Http;
using System.Data.SqlClient;
using System.Data;
using static pro_todo.Pages.Users;
namespace pro_todo.Pages{
public partial class BaskanPage1
{
}
public class proje_gorev{
public string proje_id {get;set;}
public string proje_gorev_id {get;set;}
public string proje_gorevi {get;set;}
public string proje_bolum {get;set;}
}
public class BaskanPageBaseGorev:ComponentBase{
[Inject]
IJSRuntime JSRuntime { get; set; }
static string BaglantiKodu="workstation id=protodo.mssql.somee.com;packet size=4096;user id=Ruveyda044_SQLLogin_1;pwd=xyzm27u3xo;data source=protodo.mssql.somee.com;persist security info=False;initial catalog=protodo";
static SqlConnection Baglanti = new SqlConnection(BaglantiKodu);
static string KomutKodu = "select *from proje_gorevleri";
static SqlDataAdapter ProjelerDataAdapter= new SqlDataAdapter (KomutKodu, Baglanti);
SqlCommandBuilder ProjelerKomut = new SqlCommandBuilder(ProjelerDataAdapter);
DataSet ProjelerDataSet = new DataSet();
public List<proje_gorev> gorevler=new List<proje_gorev>();
public string inputgorevadi{get;set;}
public string inputgorevid{get;set;}
public List<proje> projeler=new List<proje>();
public string MyOption { get; set; }
public void Option(ChangeEventArgs e)
{
MyOption = e.Value as string ;
}
public async void GorevEkle(){
SqlCommand komut=Baglanti.CreateCommand();
komut.CommandText="insert into proje_gorevleri values("+MyOption+",'"+inputgorevadi+"',"+MyUser.kullanici_bolum+")";
Baglanti.Open();
komut.ExecuteNonQuery();
Baglanti.Close();
await OnInitializedAsync();
}
public async Task GorevUpdate()
{
Boolean kontrol=false;
SqlCommand komut=Baglanti.CreateCommand();
foreach(var gorev in gorevler){
if(gorev.proje_gorev_id==inputgorevid && gorev.proje_bolum==MyUser.kullanici_bolum)
{
kontrol=true;
}
}
if(kontrol)
{
komut.CommandText="update proje_gorevleri set proje_gorevi='"+inputgorevadi+"' where proje_gorev_id="+inputgorevid+"";
Baglanti.Open();
komut.ExecuteNonQuery();
Baglanti.Close();
inputgorevadi="";
await OnInitializedAsync();
}
else
{
Console.WriteLine("Böyle bi gorev yok");
}
}
public List<proje> ProjeGetir(){
string BaglantiKodu="workstation id=protodo.mssql.somee.com;packet size=4096;user id=Ruveyda044_SQLLogin_1;pwd=xyzm27u3xo;data source=protodo.mssql.somee.com;persist security info=False;initial catalog=protodo";
SqlConnection Baglanti = new SqlConnection(BaglantiKodu);
string KomutKodu = "select *from proje";
SqlDataAdapter ProjelerDataAdapter= new SqlDataAdapter (KomutKodu, Baglanti);
SqlCommandBuilder ProjelerKomut = new SqlCommandBuilder(ProjelerDataAdapter);
DataSet ProjelerDataSet = new DataSet();
try
{
ProjelerDataAdapter.Fill(ProjelerDataSet, "proje");
for (int i = 0; i < ProjelerDataSet.Tables[0].Rows.Count; i++)
{
proje pm = new proje();
pm.proje_id = ProjelerDataSet.Tables[0].Rows[i]["proje_id"].ToString();
pm.proje_adi = ProjelerDataSet.Tables[0].Rows[i]["proje_adi"].ToString();
pm.proje_bitis_tarihi = ProjelerDataSet.Tables[0].Rows[i]["proje_bitiş_tarihi"].ToString();
pm.proje_bolum_id = ProjelerDataSet.Tables[0].Rows[i]["bolum_id"].ToString();
pm.proje_baskani = ProjelerDataSet.Tables[0].Rows[i]["proje_baskani"].ToString();
projeler.Add(pm);
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
return projeler;
}
public List<proje_gorev> GorevGetir(){
string BaglantiKodu="workstation id=protodo.mssql.somee.com;packet size=4096;user id=Ruveyda044_SQLLogin_1;pwd=xyzm27u3xo;data source=protodo.mssql.somee.com;persist security info=False;initial catalog=protodo";
SqlConnection Baglanti = new SqlConnection(BaglantiKodu);
string KomutKodu = "select *from proje_gorevleri";
SqlDataAdapter GorevlerDataAdapter= new SqlDataAdapter (KomutKodu, Baglanti);
SqlCommandBuilder GorevlerKomut = new SqlCommandBuilder(GorevlerDataAdapter);
DataSet GorevlerDataSet = new DataSet();
try
{
GorevlerDataAdapter.Fill(GorevlerDataSet, "proje_gorevleri");
for (int i = 0; i < GorevlerDataSet.Tables[0].Rows.Count; i++)
{
proje_gorev pm = new proje_gorev();
pm.proje_gorev_id = GorevlerDataSet.Tables[0].Rows[i]["proje_gorev_id"].ToString();
pm.proje_id = GorevlerDataSet.Tables[0].Rows[i]["proje_id"].ToString();
pm.proje_gorevi = GorevlerDataSet.Tables[0].Rows[i]["proje_gorevi"].ToString();
pm.proje_bolum = GorevlerDataSet.Tables[0].Rows[i]["proje_bolum"].ToString();
gorevler.Add(pm);
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
return gorevler;
}
protected override async Task OnInitializedAsync()
{
if(MyUser.kullanici_email != "NULL" && MyUser.kullanici_sifre != "NULL" && MyUser.kullanici_rol == "2" && MyUser.kullanici_bolum != "NULL" && MyUser.kullanici_id != "NULL")
{
projeler.Clear();
gorevler.Clear();
projeler=ProjeGetir();
gorevler=GorevGetir();
}
else
{
JSRuntime.InvokeVoidAsync("logingit");
}
}
}
}
@page "/BaskanPage2"
@inherits BaskanPageBaseAtama
@using static pro_todo.Pages.Users
<div >
<select @onchange="Option" style="margin-top:2%;" >
<option selected disabled value="-1">Kişi Seçin</option>
@if(kullanici is null)
{
<p>Loading..</p>
}
else
{
foreach(var item in kullanici)
{
@if(item.kullaniciBolumId==MyUser.kullanici_bolum)
{
string kisi=@item.kullaniciAdi+" "+@item.kullaniciSoyadi;
<option value=@item.kullaniciId >@kisi</option>
}
}
}
</select>
</div>
<div style="margin-top:-4%; margin-left:15% ;font-family:'Arial Narrow Bold'">
<input type="text" @bind="inputgorevid" style="margin-left:5%; margin-top:2%;" placeholder="Görev ID">
<button @onclick="GorevAta" class="btn btn-warning">Ekle</button>
</div>
<table class="table" style="background:rgb( 207, 216, 240 );width:55%;margin-left:2%;margin-top:5%">
<thead>
<tr>
<th>Görev Id</th>
<th>Proje Id</th>
<th>Gorev Adı</th>
<th>Bölüm Id</th>
</tr>
</thead>
<tbody>
@foreach(var item in gorevler)
{
@if(item.proje_bolum==MyUser.kullanici_bolum)
{
<tr>
<td>@item.proje_gorev_id</td>
<td>@item.proje_id</td>
<td>@item.proje_gorevi</td>
<td>@item.proje_bolum</td>
</tr>
}
}
</tbody>
</table>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment