示例#1
0
        internal static string GetLastID()
        {
            long rr = (long)Table_Adapter_Protector.ScalarQuery_GetLast_ProtectorID_Func();

            string id = rr.ToString();

            return(id);
        }
示例#2
0
        internal static CustomersAndAgents_DataSet_appData.ProtectorRow Get_Protector_Row(long OrignalProtectoriD)
        {
            CustomersAndAgents_DataSet_appData ds = new CustomersAndAgents_DataSet_appData();


            Table_Adapter_Protector.FillBy_Protector_RowBy_Protectorid_StoreProcedure(ds.Protector, OrignalProtectoriD);

            var gg = (from o in ds.Protector
                      where (o.PROTECTOR_ID == OrignalProtectoriD)
                      select o).FirstOrDefault();

            return(gg);
        }
示例#3
0
 internal static void Update_ProtectorInfo(long customerid, string profession, string country, decimal charges, decimal payable, DateTime PassportSendingDate, DateTime PassportRecievingDate, decimal profit, long OrignalProtectorId)
 {
     Table_Adapter_Protector.UpdateQuery_Protector_Info_By_ProtectoriD_Func(customerid, profession, country, charges, payable, PassportSendingDate, PassportRecievingDate, profit, OrignalProtectorId);
 }
示例#4
0
 internal static void NewProtectorInsert(long customerid, string profession, string country, decimal charges, decimal payable, DateTime PassportSendingDate, DateTime PassportRecievingDate, decimal profit)
 {
     Table_Adapter_Protector.Insert(customerid, profession, country, charges, payable, PassportSendingDate, PassportRecievingDate, profit);
 }