Skip to content

Commit

Permalink
Güncelleme
Browse files Browse the repository at this point in the history
  • Loading branch information
byk1lla committed Jul 15, 2023
1 parent 0b1f59c commit b1dca27
Show file tree
Hide file tree
Showing 26 changed files with 57 additions and 20,921 deletions.
39 changes: 39 additions & 0 deletions API/require.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,45 @@ public static string Add(string musteri,string faturano,string urun,double fiyat
}
}
}

public static string delete(string id)
{
using (var fs = File.OpenRead(JSONPath))
using (var sr = new StreamReader(fs, new UTF8Encoding(false)))
{
string json = sr.ReadToEnd();
Config = JsonConvert.DeserializeObject<jsconfig>(json);
connectionString = Config.connectionString;
}
using (SqlConnection connection = new SqlConnection(connectionString))
{
try
{
connection.Open();

string query = "DELETE FROM fatura WHERE fatura_no=" + id;

using (SqlCommand command = new SqlCommand(query, connection))
{
Log.dosyayaKaydet("Ürün Kaydı Silindi!\nID: " + id, "UserActivity");
command.ExecuteNonQuery();
}
return "basarili";
}
catch (SqlException sql)
{
Log.error(sql.Message, "SqlError");
return sql.Message;
}
catch (Exception ex)
{
Log.error(ex.Message, "SysError");
return ex.Message;


}
}
}
}
#endregion;

Expand Down
1,760 changes: 0 additions & 1,760 deletions DataSet/FATURE.Designer.cs

This file was deleted.

1 change: 0 additions & 1 deletion DataSet/FATURE.xsc

This file was deleted.

144 changes: 0 additions & 144 deletions DataSet/FATURE.xsd

This file was deleted.

1 change: 0 additions & 1 deletion DataSet/FATURE.xss

This file was deleted.

9,168 changes: 0 additions & 9,168 deletions DataSet/butikunDataSet1.Designer.cs

This file was deleted.

1 change: 0 additions & 1 deletion DataSet/butikunDataSet1.xsc

This file was deleted.

802 changes: 0 additions & 802 deletions DataSet/butikunDataSet1.xsd

This file was deleted.

1 change: 0 additions & 1 deletion DataSet/butikunDataSet1.xss

This file was deleted.

8,240 changes: 0 additions & 8,240 deletions DataSet/butikunDataSet2.Designer.cs

This file was deleted.

1 change: 0 additions & 1 deletion DataSet/butikunDataSet2.xsc

This file was deleted.

735 changes: 0 additions & 735 deletions DataSet/butikunDataSet2.xsd

This file was deleted.

1 change: 0 additions & 1 deletion DataSet/butikunDataSet2.xss

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
72 changes: 12 additions & 60 deletions butikunmuhasebe.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,11 @@
<DependentUpon>OpenOrder.cs</DependentUpon>
</Compile>
<Compile Include="API\require.cs" />
<Compile Include="DataSet\butikunDataSet.Designer.cs">
<Compile Include="butikunDataSet.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>butikunDataSet.xsd</DependentUpon>
</Compile>
<Compile Include="DataSet\butikunDataSet1.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>butikunDataSet1.xsd</DependentUpon>
</Compile>
<Compile Include="DataSet\butikunDataSet2.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>butikunDataSet2.xsd</DependentUpon>
</Compile>
<Compile Include="ButikUnGUI\Admin.cs">
<SubType>Form</SubType>
</Compile>
Expand Down Expand Up @@ -144,17 +134,12 @@
<Compile Include="ButikUser\urun.Designer.cs">
<DependentUpon>urun.cs</DependentUpon>
</Compile>
<Compile Include="DataSet\faturaDataSet.Designer.cs">
<Compile Include="faturaDataSet.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>faturaDataSet.xsd</DependentUpon>
</Compile>
<Compile Include="DataSet\FATURE.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>FATURE.xsd</DependentUpon>
</Compile>
<Compile Include="DataSet\newUpdated.Designer.cs">
<Compile Include="newUpdated.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>newUpdated.xsd</DependentUpon>
Expand Down Expand Up @@ -206,71 +191,38 @@
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="DataSet\butikunDataSet.xsc">
<None Include="butikunDataSet.xsc">
<DependentUpon>butikunDataSet.xsd</DependentUpon>
</None>
<None Include="DataSet\butikunDataSet.xsd">
<None Include="butikunDataSet.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>butikunDataSet.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</None>
<None Include="DataSet\butikunDataSet.xss">
<None Include="butikunDataSet.xss">
<DependentUpon>butikunDataSet.xsd</DependentUpon>
</None>
<None Include="DataSet\butikunDataSet1.xsc">
<DependentUpon>butikunDataSet1.xsd</DependentUpon>
</None>
<None Include="DataSet\butikunDataSet1.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>butikunDataSet1.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</None>
<None Include="DataSet\butikunDataSet1.xss">
<DependentUpon>butikunDataSet1.xsd</DependentUpon>
</None>
<None Include="DataSet\butikunDataSet2.xsc">
<DependentUpon>butikunDataSet2.xsd</DependentUpon>
</None>
<None Include="DataSet\butikunDataSet2.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>butikunDataSet2.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</None>
<None Include="DataSet\butikunDataSet2.xss">
<DependentUpon>butikunDataSet2.xsd</DependentUpon>
</None>
<None Include="DataSet\faturaDataSet.xsc">
<None Include="faturaDataSet.xsc">
<DependentUpon>faturaDataSet.xsd</DependentUpon>
</None>
<None Include="DataSet\faturaDataSet.xsd">
<None Include="faturaDataSet.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>faturaDataSet.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</None>
<None Include="DataSet\faturaDataSet.xss">
<None Include="faturaDataSet.xss">
<DependentUpon>faturaDataSet.xsd</DependentUpon>
</None>
<None Include="DataSet\FATURE.xsc">
<DependentUpon>FATURE.xsd</DependentUpon>
</None>
<None Include="DataSet\FATURE.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>FATURE.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</None>
<None Include="DataSet\FATURE.xss">
<DependentUpon>FATURE.xsd</DependentUpon>
</None>
<None Include="JSON\settings.JSON" />
<None Include="DataSet\newUpdated.xsc">
<None Include="newUpdated.xsc">
<DependentUpon>newUpdated.xsd</DependentUpon>
</None>
<None Include="DataSet\newUpdated.xsd">
<None Include="newUpdated.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>newUpdated.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</None>
<None Include="DataSet\newUpdated.xss">
<None Include="newUpdated.xss">
<DependentUpon>newUpdated.xsd</DependentUpon>
</None>
<None Include="packages.config" />
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions DataSet/newUpdated.Designer.cs → newUpdated.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b1dca27

Please sign in to comment.