I have a custom request regarding this.
I need to implement a DLL that executes when a button on the homepage (All Checks View page) is clicked. When I trigger function in the DLL it should update the payment for a specific check and then close the check. The payment tender type and specific Check ID should be passed as input parameters to the DLL. I have provided a sample .cs file. it's just initialised the project and test logs. And I need to do this without any interrupting current UIs process in the POS. it mean if someone working in the POS with other order, DLL should process the payment to specific requested check.
Could you guide me on how to implement this using C# to build the .NET DLL?
Additionally, could you provide the steps to correctly configure this in EMC?
I am not sure this way is correct.
[ExtensibilityMethod]
public void CustomPaymentByDLL()
{
OpsContext.ShowMessage("CustomPaymentByDLL By COMMAND TEST");
Console.WriteLine("CustomPaymentByDLL button clicked");
OpsCommand cmdMacro1 = new OpsCommand(OpsCommandType.Macro);
var commadData = new List<OpsCommand>
{
new OpsCommand(OpsCommandType.Payment)
{
Number = 205
},
new OpsCommand(OpsCommandType.AsciiData) { Text = "10.0" },
new OpsCommand(OpsCommandType.EnterKey)
};
cmdMacro1.Data = commadData;
var result = OpsContext.ProcessCommand(cmdMacro1);
Console.WriteLine($"CustomPaymentByDLL result: {result}");
}
Please help me on this.
I need to implement a DLL that executes when a button on the homepage (All Checks View page) is clicked. When I trigger function in the DLL it should update the payment for a specific check and then close the check. The payment tender type and specific Check ID should be passed as input parameters to the DLL. I have provided a sample .cs file. it's just initialised the project and test logs. And I need to do this without any interrupting current UIs process in the POS. it mean if someone working in the POS with other order, DLL should process the payment to specific requested check.
Could you guide me on how to implement this using C# to build the .NET DLL?
Additionally, could you provide the steps to correctly configure this in EMC?
I am not sure this way is correct.
[ExtensibilityMethod]
public void CustomPaymentByDLL()
{
OpsContext.ShowMessage("CustomPaymentByDLL By COMMAND TEST");
Console.WriteLine("CustomPaymentByDLL button clicked");
OpsCommand cmdMacro1 = new OpsCommand(OpsCommandType.Macro);
var commadData = new List<OpsCommand>
{
new OpsCommand(OpsCommandType.Payment)
{
Number = 205
},
new OpsCommand(OpsCommandType.AsciiData) { Text = "10.0" },
new OpsCommand(OpsCommandType.EnterKey)
};
cmdMacro1.Data = commadData;
var result = OpsContext.ProcessCommand(cmdMacro1);
Console.WriteLine($"CustomPaymentByDLL result: {result}");
}
Please help me on this.