public HttpResponseMessage Delete([FromUri] int Id, [FromBody] int modifiedBy)
        {
            SalesReturnRegister Sr = new SalesReturnRegister();

            Sr.ID         = Id;
            Sr.ModifiedBy = modifiedBy;
            return(Request.CreateResponse(HttpStatusCode.OK, Sr.Delete()));
        }
예제 #2
0
        private void btnFilters_Click(object sender, EventArgs e)
        {
            Reports.Accountbooks.SalesReturnRegister frmsalesreturnreg = new SalesReturnRegister();
            frmsalesreturnreg.ShowDialog();

            //frmdayBook.ShowDialog();
            //frmdayBook(this);
        }
예제 #3
0
 public HttpResponseMessage Save(SalesReturnRegister Sr)
 {
     if (Sr.ID > 0)
     {
         return(Request.CreateResponse(HttpStatusCode.OK, Sr.Update()));
     }
     else
     {
         return(Request.CreateResponse(HttpStatusCode.OK, Sr.Save()));
     }
 }
 public HttpResponseMessage GetSalesReturnDetails([FromBody] int LocationId, [FromUri] int ID, [FromUri] int type)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, SalesReturnRegister.GetDetailsDamageType(LocationId, ID, type)));
 }
 public HttpResponseMessage GetSalesReturn([FromBody] int LocationId, [FromUri] int SupplierId, [FromUri] int ItemId, [FromUri] int InstanceId)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, SalesReturnRegister.GetDetailsDamageType(LocationId, SupplierId, ItemId, InstanceId)));
 }
예제 #6
0
 public async Task <HttpResponseMessage> SendMail([FromBody] string url, [FromUri] int salesId, [FromUri] string toAddress, [FromUri] int userId)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, await Task.Run(() => SalesReturnRegister.SendMail(salesId, toAddress, userId, url))));
 }
예제 #7
0
 public HttpResponseMessage Get([FromUri] int Id, [FromBody] int LocationId)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, SalesReturnRegister.GetDetails(Id, LocationId)));
 }
예제 #8
0
 public HttpResponseMessage Get([FromBody] int LocationId, [FromUri] int?CustomerId, [FromUri] DateTime?from, [FromUri] DateTime?to)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, SalesReturnRegister.GetDetails(LocationId, CustomerId, from, to)));
 }
예제 #9
0
        private void tlistAccountbook_MouseDown(object sender, MouseEventArgs e)
        {
            DevExpress.XtraTreeList.TreeListHitInfo hi = tlistAccountbook.CalcHitInfo(e.Location);
            if (hi.HitInfoType == DevExpress.XtraTreeList.HitInfoType.Cell)
            {
                string selectedNode = hi.Node[Accountbooks].ToString();
                switch (selectedNode)
                {
                case "Account Group Ledger":
                    Reports.Accountbooks.AccountGroupLedger frmAccGrp = new Reports.Accountbooks.AccountGroupLedger();
                    frmAccGrp.StartPosition = FormStartPosition.CenterParent;
                    frmAccGrp.ShowDialog();
                    break;

                case "Account Ledger":
                    Reports.Accountbooks.AccountLedger frmAccLed = new Reports.Accountbooks.AccountLedger();
                    frmAccLed.ShowDialog();
                    break;

                case "Bank Book":
                    Bankbook frmBook = new Bankbook();
                    frmBook.ShowDialog();
                    break;

                case "Cash Book Single":
                    CashbookSingle frmCashbook = new CashbookSingle();
                    frmCashbook.ShowDialog();
                    break;

                case "Day Book":
                    Daybook frmday = new Daybook();
                    frmday.ShowDialog();
                    break;

                case "Payment Register":
                    PaymentRegister frmpay = new PaymentRegister();
                    frmpay.ShowDialog();
                    break;

                case "Purchase Register":
                    PurchaseRegister frmpurc = new PurchaseRegister();
                    frmpurc.ShowDialog();
                    break;

                case "Purchase Return Register":
                    PurchaseReturnRegister frmPurcre = new PurchaseReturnRegister();
                    frmPurcre.ShowDialog();
                    break;

                case "Receipt Register":
                    RecepitRegister frmRece = new RecepitRegister();
                    frmRece.ShowDialog();
                    break;

                case "Sales Register":
                    Saleregister frmsale = new Saleregister();
                    frmsale.ShowDialog();
                    break;

                case "Sales Return Register":
                    SalesReturnRegister frmsaleret = new SalesReturnRegister();
                    frmsaleret.ShowDialog();
                    break;

                case "Sub Ledger":
                    SubLedger frmsub = new SubLedger();
                    frmsub.ShowDialog();
                    break;

                default:
                    break;
                }
            }

            //string selectedNode = (sender as TreeList).FocusedNode.GetValue(0).ToString();
        }